How to Reset Root Password in Linux with a GRUB Menu

Had to go recover a few files for a friend.

Box is running on an older version of Linux (Red Hat 8.0?) and nobody remembers the password. Tried to do a brute force recovery, but in vain.

Boot using single user mode. This automatically logs the user as root.

  1. Restart machine.
  2. In the GRUB menu, press ‘a’ to edit kernel options
  3. Append a space and the word ‘single’ after the menu option you wish to use
  4. Save and continue
  5. Voila!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s