How to Reset Root Password in Linux with a GRUB Menu

Had to go recover a few files for a friend.

Problem:
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.

Solution:
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!
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s