{"id":111,"date":"2012-02-21T13:46:26","date_gmt":"2012-02-21T13:46:26","guid":{"rendered":"http:\/\/www.top-password.com\/blog\/?p=111"},"modified":"2012-02-21T13:49:41","modified_gmt":"2012-02-21T13:49:41","slug":"how-to-reset-forgotten-root-password-for-linux","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/how-to-reset-forgotten-root-password-for-linux\/","title":{"rendered":"How to Reset Forgotten Root Password for Linux?"},"content":{"rendered":"<p>It happens sometime that you can&#8217;t remember root password. On Linux, resetting root password can be done by booting Linux under a specific mode: single user mode. This tutorial will show how to boot Linux in single user mode when using GRUB or LILO and finally how to change forgotten root password.<\/p>\n<p><strong>If your boot loader is GRUB, follow the procedure below to reset your lost root password:<\/strong><\/p>\n<ol>\n<li>Select the kernel.<\/li>\n<li>Press the e key to edit the entry.<\/li>\n<li>Select second line (the line starting with the word kernel).<\/li>\n<li>Press the e key to edit kernel entry so that you can append single user mode.<\/li>\n<li>Append the letter S (or word Single) to the end of the (kernel) line.<\/li>\n<li>Press ENTER key.<\/li>\n<li>Now press the b key to boot the Linux kernel into single user mode.<\/li>\n<li>At prompt type passwd command to reset password.<\/li>\n<\/ol>\n<p>You need to mount at least \/ and other partitions:<br \/>\n<code># mount -t proc proc \/proc<br \/>\n# mount -o remount,rw \/<\/code><\/p>\n<p>Change the root password, enter:<br \/>\n<code># passwd<\/code><\/p>\n<p>Finally reboot system:<br \/>\n<code># sync<br \/>\n# reboot<\/code><\/p>\n<p><strong>If your boot loader is LILO:<\/strong><br \/>\nAt LILO boot loader type linux single and press [ENTER] key:<br \/>\n<code>Boot: linux single<\/code><\/p>\n<p>When you get the # prompt you will need to type passwd root to reset password:<br \/>\n<code># passwd<\/code><\/p>\n<p>Reboot system:<br \/>\n<code># sync<br \/>\n# reboot<\/code><\/p>\n<p>If you need to reset forgotten Windows admin\/user password, please refer to this software: <a href=\"http:\/\/www.top-password.com\/reset-windows-password.html\" title=\"Reset Windows Password\" target=\"_blank\">Reset Windows Password<\/a>.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>It happens sometime that you can&#8217;t remember root password. On Linux, resetting root password can be done by booting Linux under a specific mode: single user mode. This tutorial will show how to boot Linux in single user mode when using GRUB or LILO and finally how to change forgotten root password. If your boot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10],"tags":[49,48],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","tag-linux","tag-reset-root-password"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":5,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}