{"id":12412,"date":"2021-11-28T18:27:11","date_gmt":"2021-11-28T18:27:11","guid":{"rendered":"https:\/\/linuxways.net\/?p=12412"},"modified":"2021-11-28T18:27:11","modified_gmt":"2021-11-28T18:27:11","slug":"how-to-reset-root-password-on-debian-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-reset-root-password-on-debian-11\/","title":{"rendered":"How to Reset Root Password on Debian 11"},"content":{"rendered":"<p>Losing your root password can be quite unsettling, mostly because the root user is the most privileged user in a Linux system. This means that you will not be able to perform tasks which are a preserve for the root user. Fortunately, there exists a workaround that can help you reset a root password. In this guide, we will walk you through a step-by-step procedure of how to reset your root password on Debian 11 from the GRUB menu.<\/p>\n<h2><strong>Step 1: Reboot Debian System<\/strong><\/h2>\n<p>First, restart your Debian 11 system. As soon the GRUB menu appears, press the \u2018e\u2019 key on your keyboard on the first GRUB menu selection. This takes you to the GRUB settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"478\" class=\"wp-image-12413\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-485.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-485.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-485-300x222.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h2><strong>Step 2: Edit Boot Grub Configuration<\/strong><\/h2>\n<p>Next, locate the line that starts with <strong>&#8216;linux&#8217;. <\/strong>Navigate to the end of this line using arrow keys and just after <strong>\u2018ro quiet\u2019 <\/strong>append the line <strong>init=\/bin\/bash. <\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"470\" class=\"wp-image-12414\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-486.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-486.png 622w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-486-300x227.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/strong><\/p>\n<p>Next press <strong>ctrl + x <\/strong>to boot into single-user mode. This will take you into the root console. Then, modify the access right from read-only to read-write in order to reset the password. Run the following command to mount the root filesystem in \u2018read and write\u2019 mode:<\/p>\n<pre><strong>$ \/# mount -n -o remount,rw \/<\/strong><\/pre>\n<h2><strong>Step 3: Reset Password<\/strong><\/h2>\n<p>After that is done, reset the root password using the following command:<\/p>\n<pre><strong>$ passwd<\/strong><\/pre>\n<p>The system will ask you to set a new password. Type and retype the password to confirm. If everything is okay, you should get a message that says &#8220;password updated successfully&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"803\" height=\"222\" class=\"wp-image-12415\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-487.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-487.png 803w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-487-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-487-768x212.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\n<p>To exit and reboot, press <strong>Ctrl + Alt + Del. <\/strong>You can now log in as the root user with the new password.<\/p>\n<p>Following the steps above, you can quickly reset your root password on Debian 11. In case you cannot recall your root password, we hope that this tutorial has saved you the agony and pain and you can easily reset your password using the three simple steps that we have documented.<\/p>","protected":false},"excerpt":{"rendered":"<p>Losing your root password can be quite unsettling, mostly because the root user is the most privileged user in a Linux system. This means that you will not&hellip;<\/p>","protected":false},"author":1,"featured_media":12518,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[521,215,697],"class_list":["post-12412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-11","tag-password","tag-root"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12412"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12518"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}