Resetting forgotten root password on Centos/Red Hat
If you are desperate because you have forgotten root password, don’t be. This tutorial will show you how to reset root.
Boot the system and when you see the following screen, press any key
At the following screen, press e
It will take you the following screen
Highlight the line with vmlinuz in it by using the arrow keys and press e. The next screen will look like below
Now type single or init 1 at the very end of the line so.
Then press enter and b to boot the system with the new argument
The system will boot into single user mode and you will see bash prompt like below
Now change the password
passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
type in the new password and then reboot
reboot
to restart the system.
Technorati Tags: grub, forgot root passord, reset root password







April 26th, 2010 at 4:58 pm
Worked like a charm on my Centos 5.x system on Asus Eee Box 202,
HOWEVER after performing this, for some reason the mouse doesn’t work anymore!!!
August 23rd, 2010 at 2:13 am
Thanks a lot! it worked fine with Oracle VM Virtual Box
September 2nd, 2010 at 3:42 pm
It’s very good to see web sites with material and many thanks for the discuss which you’ve gave. Generally, I’m really stunned, but etc…
October 27th, 2010 at 12:07 pm
OMG, Thank-you so much for this. My system and backup crashed due to a major failure, But I was able to find a backup I could use. Only problem was I couldn’t remember the ROOT password I used for that installation. This saved me from having to do a complete reload!!!!!