Solution to centos forgetting the root password

Source: Internet
Author: User

1. Press the "E" or "ESC" key on the keyboard when starting the system to enter the following interface.

2. Select the corresponding kernel, which is generally the second option. Press "E" again to display the kernel. Select the second option and press "E" again.

3. after the second step, you can edit the screen, add a space at the end of the information, directly enter the number "1" () or type "single", and press enter to go to the next step.

4. The third step appears after the operation. Do you feel like you are back to the second step? No. Press the "B" key on the keyboard to enter the boot system. Note: Here is the "B" key.

5. in the following figure, enter "#", "passwd root", reset the root password, enter the password again, and then enter the password twice, enter reboot to restart the system, and the root password is reset.

Solution to centos forgetting the root password

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.