Linux-Noob Forums
Lost root password (grub) - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+--- Thread: Lost root password (grub) (/thread-3974.html)



Lost root password (grub) - Digerati - 2003-12-15


At the Grub boot menu hit "e"

Select the line that begins with "kernel"

 

Hit "e" again

 

Move the cursor to the end of the line and add " init=/bin/bash" then hit enter

 

Press "b" to boot the system

 

At the bash prompt that comes up, type the following: "mount /proc" then hit enter

 

next type "mount / -o rw,remount" then hit enter

 

next type "passwd" then hit enter

 

now enter your new password twice

 

You should receive a notice stating "All authentication tokens updated successfully". This confirms your password has been changed.

 

next type "mount / -o ro,remount" then hit enter

 

now press control-alt-delete to reboot

 

logon with new password to verify

 

Credit to Buddha and his LUG