{"id":7450,"date":"2026-04-19T11:31:31","date_gmt":"2026-04-19T09:31:31","guid":{"rendered":"https:\/\/yoota.it\/en\/raspberry-pi-os-6-2-now-requires-password-for-sudo-by-default\/"},"modified":"2026-04-19T11:31:32","modified_gmt":"2026-04-19T09:31:32","slug":"raspberry-pi-os-6-2-now-requires-password-for-sudo-by-default","status":"publish","type":"post","link":"https:\/\/yoota.it\/en\/raspberry-pi-os-6-2-now-requires-password-for-sudo-by-default\/","title":{"rendered":"Raspberry Pi OS 6.2 Now Requires Password for sudo by Default"},"content":{"rendered":"\n<p>Raspberry Pi OS 6.2, the second update based on Debian Trixie, brings a security change that Linux users have long expected: <code>sudo<\/code> now requires a password on fresh installations.<\/p>\n\n\n\n<p>Until now, Raspberry Pi OS shipped with passwordless sudo enabled by default. You could run any command with <code>sudo<\/code> and get administrator privileges without entering credentials. Convenient, sure, but also a real security gap: anyone with access to the machine could execute privileged operations without knowing a single password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/yoota.it\/wp-content\/uploads\/2026\/04\/cli-1024x576-1.webp\" alt=\"\" class=\"wp-image-9564\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What changes now<\/h2>\n\n\n\n<p>Starting with this version, typing <code>sudo<\/code> in the terminal prompts for the current user&#8217;s password. Once entered correctly, you won&#8217;t be asked again for the next five minutes, even for additional privileged commands. Some graphical operations, like certain Control Center settings, now also show an authentication dialog.<\/p>\n\n\n\n<p>If you want the old behavior back, it&#8217;s straightforward: in the desktop interface, disable the &#8220;Admin password&#8221; option in the System section of Control Center. From the command line, use <code>raspi-config<\/code> and navigate to the System menu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Who this actually affects<\/h2>\n\n\n\n<p>This deserves emphasis because it&#8217;s the most important detail: <strong>the change applies only to fresh installations<\/strong>. If you update an existing Raspberry Pi, you&#8217;ll see the new option in Control Center, but the behavior stays the same unless you change it manually.<\/p>\n\n\n\n<p>For headless setups running automated scripts that rely on <code>sudo<\/code>, test your setup after a clean install and reconfigure if needed.<\/p>\n\n\n\n<p>The rest of the update contains bug fixes and minor improvements accumulated over recent months, nothing else major.<\/p>\n\n\n\n    \n    <div class=\"yoota-fonte\">\n        <a href=\"https:\/\/www.raspberrypi.com\/news\/a-security-update-for-raspberry-pi-os\/\" target=\"_blank\" rel=\"nofollow noopener\" class=\"yoota-fonte-hit\">\n            \n            <span class=\"yoota-fonte-icon\" aria-hidden=\"true\">\n                <i class=\"ri-external-link-line\"><\/i>\n            <\/span>\n\n            <span class=\"yoota-fonte-content\">\n                <span class=\"yoota-fonte-label\">SOURCE:\/\/<\/span>\n\n                                    <span class=\"yoota-fonte-link\">\n                        raspberrypi.com                    <\/span>\n                            <\/span>\n\n        <\/a>\n    <\/div>\n    \n    \n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi OS 6.2 enforces password authentication for sudo on new installations by default. Here&#8217;s what changes and who it affects.<\/p>\n","protected":false},"author":2,"featured_media":7449,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"italian_url":"https:\/\/yoota.it\/raspberry-pi-os-6-2-addio-al-sudo-senza-password-per-le-nuove-installazioni\/","yoota_meta_description":"","activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[111],"tags":[329,286,272],"class_list":["post-7450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry","tag-linux","tag-raspberry-pi","tag-security"],"_links":{"self":[{"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/posts\/7450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/comments?post=7450"}],"version-history":[{"count":1,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/posts\/7450\/revisions"}],"predecessor-version":[{"id":7452,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/posts\/7450\/revisions\/7452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/media\/7449"}],"wp:attachment":[{"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/media?parent=7450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/categories?post=7450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yoota.it\/en\/wp-json\/wp\/v2\/tags?post=7450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}