There are a lot of guide lines on recovering ROOT password in a Red Hat or Fedora, by entering single user mode and change the ROOT password using passwd command. However the trick isn’t work in RHEL 6 any more, where issuing the passwd command in single user mode will not prompt you to enter the new password.
Here is a trick where I discover in order to recover the ROOT password in RHEL6.
- First enter single user mode. To do this, boot your machine and wait until the message to enter GRUB (the one with a counter). Press any key to enter GRUB, then press e to edit the boot argument. Just append the word single at the back of the arguments and press enter to continue boot.
- You should enter single user mode, with the root prompt. Instead of using entering only
passwd, enter the following command:passwd -d root - “-d” is meant for making the password blank. Now your root password should be blank. Reboot your machine and change your ROOT password.
Advertisement





thanks for posting… v helpful
Comment by lillinonah — July 28, 2011 @ 10:23 pm
thanks..it is really helpfull..
Comment by naveen — December 9, 2011 @ 5:17 pm
Thanks – wasted 1/2 hour before I found your solution – extremely helpful.
Comment by Ray Smith — February 22, 2012 @ 1:34 am