How to recover the root password in Centos 6?

Source: Internet
Author: User

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 the command 'reboot' to reboot server.




This article is from the "Avaya" blog, so be sure to keep this source http://avaya.blog.51cto.com/4259683/1759541

How to recover the root password in Centos 6?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.