Linux-Noob Forums

Full Version: Lost root password (grub)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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