CentOS forgot the root password. Solution: centos forgot the root password.

Source: Internet
Author: User

CentOS forgot the root password. Solution: centos forgot the root password.

1. After starting the instance, press any key before the last 5 seconds.

2. on the page that displays centos..., press edit)

3. The interface of the three lines will appear. Select the line in the middle of the kernel... and press the e key.

4. At the end of the interface that appears, there is a quiet, followed by space and 1, and then press Enter.

5. Go back to the interface of the previous three lines, continue to select the line of kernel, press the key B, the system will automatically restart and enter the root Interface

6. Enter passwd root and press Enter.

7. Enter the new password and press Enter. If passwd: all authentication tokens updated successfully. is displayed, the modification is successful.

8. restart the system shutdown-r now

9. After the restart is successful, the login name is root. Press enter and enter the password. Press enter. Then you can successfully access the CentOS system.

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.