Centos forgot Root Password

Source: Internet
Author: User

What if one day you forget everything, including the root password, and cannot log on to the system?

It's easy to do in two steps:

1. When starting the system, you can see the boot directory, use the up and down arrow keys to select the system you forgot your password, and then press "E ".

 

2. Next you can see the figure shown in. Then you can use the up/down key to select the latest kernel, and then press "E ".

 

 

3. After completing the previous step, you can see the following picture. Add "space" at the end of rhgb quiet, and then type "single", or enter "1" of the number and press enter to confirm.

4. Press "B" to reboot the system.

5. After entering the system, passwd can be used. Reboot after modification.

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.