How to recover root password in Centos 6 ?



How to recover the root password ?


1) Press ' E ' when starting the server.


How to recover the root password in Centos 6 ?


2) Select Kernel followed by pressing ' E ' to edit the commands.


How to recover the root password in Centos 6 ?

How to recover the root password in Centos 6 ?


3) Add 'single' or '1' then press enter.


How to recover the root password in Centos 6 ?


4) Press " B " to boot server with single user mode.



How to recover the root password in Centos 6 ?

How to recover the root password in Centos 6 ?



5) Use command 'passwd root' to change the root password.


How to recover the root password in Centos 6 ?


6) Use command 'reboot' to reboot server.