Wednesday, December 21, 2011

How to Reset 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.

Please note that you cannot perform this remotely, you must be physically at the machine.

 

1.      Step  : Reboot The Server

2.     Step : Look for the centos blue screen saying booting press DOWN arrow key

                   

3.     Step :  Select any Kernel and Press “ e ”  

                      

4.     Step : Select Kernel /vmlinuz and Press “ e ”

                        

5.     Step : Type “ single “ and Press Enter

6.     Step : You Will see the kernel /vmlinuz selected Press “ b ” Server will reboot

 

7.     Step : After Rebooting the server you will get the Shell Prompt  and Type Command “ passwd ”

8.     Step : Type password “ newpassword “

 

9.     Step : Reboot server using command “ init 6”

10.          You Are Done!!

 

0 comments:

Post a Comment