標籤:root;centos
How to recover root password in Centos 6 ?
How to recover the root password ?
1) Press ‘ E ‘ when starting the server.
650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/7E/70/wKiom1b_YofTo5KzAAAVsQI1oTg777.png" title="root01.png" alt="wKiom1b_YofTo5KzAAAVsQI1oTg777.png" />
2) Select Kernel followed by pressing ‘ E ‘ to edit the commands.
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M00/7E/6D/wKioL1b_YxiQglbcAAAlLg6NCak376.png" style="float:none;" title="root02.png" alt="wKioL1b_YxiQglbcAAAlLg6NCak376.png" />
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/7E/70/wKiom1b_YnPB21rUAAAQIleBq90612.png" style="float:none;" title="root03.png" alt="wKiom1b_YnPB21rUAAAQIleBq90612.png" />
3) Add ‘single‘ or ‘1‘ then press enter.
650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/7E/6D/wKioL1b_Y2TBJ2KCAAAXfQLh7G0622.png" title="root04.png" alt="wKioL1b_Y2TBJ2KCAAAXfQLh7G0622.png" />
4) Press " B " to boot server with single user mode.
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/7E/6D/wKioL1b_Y3_Tz2-7AAAlusLq250173.png" style="float:none;" title="root05.png" alt="wKioL1b_Y3_Tz2-7AAAlusLq250173.png" />
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M00/7E/70/wKiom1b_YtqCaseUAAA7ehEdYsw913.png" style="float:none;" title="root06.png" alt="wKiom1b_YtqCaseUAAA7ehEdYsw913.png" />
5) Use command ‘passwd root‘ to change the root password.
650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/7E/70/wKiom1b_YujAklc7AAAQ2pkSrS4682.png" title="root07.png" alt="wKiom1b_YujAklc7AAAQ2pkSrS4682.png" />
6) Use command ‘reboot‘ to reboot server.
本文出自 “Avaya” 部落格,請務必保留此出處http://avaya.blog.51cto.com/4259683/1759541
How to recover the root password in Centos 6 ?