Posted by: Michael | October 15, 2008

Rescuing Linux ‘root’ account password

In case of emergency, you can recover your root password by following these steps: (Mostly for RHEL4/Fedora/CentOS-based Linux systems)

  1. Power on the machine/reboot if necessary
  2. On the boot menu, select the OS you preferred and press `e` on you keyboard
  3. Select the image you would like to boot, and press `e` again as soon as you get to the next screen
  4. Insert a space and the number one `1`. After that press ENTER and `b` and ENTER again
  5. You have now your system booted in a single user mode without entering a password
  6. Type on the shell ‘passwd’ and enter your new password

Leave a response

You must be logged in to post a comment.

Categories