Linux Forgot Password solution

Source: Internet
Author: User

many times because of the password too much, we always forget the root login password, this time many people always use the method of reloading system to solve, but in fact does not use to reinstall the system can be solved, small facet 650) this.width=650; "Src=" http:/ /img.baidu.com/hi/jx2/j_0061.gif "alt=" J_0061.gif "/> will take you to see it.


we simply log in in single-user mode to change the root account password, and we use the Grub boot loader to boot.

First of all, we will restart the main machine, when the interface to read the second time, click into the Press any key, if not press will be known by default from the local boot, such as:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9C/2D/wKioL1ltYAiSB-z1AAAW4BJRSk4843.png "style=" float : none; "title=" Root password 0.png "alt=" Wkiol1ltyaisb-z1aaaw4bjrsk4843.png "/>

Remember to click on it, do not press too fast, do not miss the second picture, such as:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9C/2D/wKiom1ltYAiDK4P-AAApUazpwQU749.png "style=" float : none; "title=" Root password 1.png "alt=" Wkiom1ltyaidk4p-aaapuazpwqu749.png "/>

At this time do not press casually, the cursor to the kernel line, press the "E" key on the keyboard , this time will enter the grub editing mode, the following interface:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9C/2D/wKioL1ltYAmBGYpFAAA4ZJ_zXsY643.png "style=" float : none; "title=" Root password 2.png "alt=" Wkiol1ltyambgypfaaa4zj_zxsy643.png "/>

then in the interface of the most input single, and then press ENTER, will return to the interface, press the "B" Key can be turned on to the one-user maintenance mode.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9C/2D/wKiom1ltYAmBaDRnAAAi1cnPGdo982.png "style=" float : none; "title=" Root password 3.png "alt=" Wkiom1ltyambadrnaaai1cnpgdo982.png "/>

Under This mode, you will not need to enter a password in the TTY to gain control of the terminal (and the identity of the root ). You can then change the root password:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9C/2D/wKiom1ltYAqi9XcIAAB7JEDiQ7g824.png "style=" float : none; "title=" Root password 4.png "alt=" Wkiom1ltyaqi9xciaab7jediq7g824.png "/>

Enter passwdat the command line, and then enter two times the new password is good, after the completion of the reboot can be restarted. This is the time to log in with the new root password. Actually, it's pretty simple, right? 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0003.gif "alt=" J_0003.gif "/>


This article is from the Linux OPS blog, so be sure to keep this source http://jk6627.blog.51cto.com/12002684/1948419

Linux Forgot Password solution

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.