How to recover the root password in Centos 6 ?

來源:互聯網
上載者:User

標籤: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 ?

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.