Resetting lost Linux root password

If you have a Linux box to which you don't know the root password, with physical access to the box it's easy to recover it.

At the LILO boot prompt (it's similar for GRUB but I can't remember the exact details... JFGI) type:

linux init=/bin/bash

That should drop you to a Bash shell with root privileges without being asked for the password... now reset it with passwd then reboot.

linux/resetrootpassword.txt · Last modified: 2010/02/26 10:45 (external edit)
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki