Friday, December 19, 2008

Reset root password on linux red hat vmware

I forgot my root password on my linux vmware. Here are the steps that I do in order to reset it.
1. Press any key when you see the startup menu.
2. Press "e " when you see the next menu.
3. Select the image you want to load and press "e ", basically select any of the option you are seeing for instance select Kernel........
4. Type " 1 " (fyi first press space and than number one) as in following screen and press enter.
5. Press "b " here to boot to single user.
6.You would get the following promt without being asked for password.
7. Type the change password command which is "passwd " and set your new password .
8. Reboot our system by typing "reboot ".
9. When prompt for password key in the new password just set up.
By now you should be able to login to the system.
Hope this help anyone that hit the same problem as me.