CentOS Forget root user login password how to do

Source: Internet
Author: User

Boot system, press the ESC key on the keyboard before entering the system, enter the following interface

Press the e key on the keyboard and the following interface appears

Use the arrow keys on the keyboard to move the cursor to the second item, and then press eon the keyboard, enter a space bar, and then enter the number 1, return, the following interface will appear

This time the cursor is positioned in the second item, continue to press the B key above the keyboard, the system will automatically restart,

Now reset the root password

Enter passwd root, carriage return

Require a new password, here enter 123456 carriage return

Enter 123456 return to see passwd: Allauthentication tokens updated successfully. Line

Description Password Modification succeeded

Now reboot the system and enter Shutdown-r to return

After the system automatically restarts, enter the root return, then enter the password 123456, the system login successfully.

At this point, theroot password has been reset to 123456

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.