Solution to CentOS password loss

Source: Internet
Author: User

Solution to CentOS password loss

Restart the system, and then press any key in the next five seconds. For example


Enter the following screen and press the [e] key, as shown in figure <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140409/2014040911061022.jpg" alt = "\">

Move the cursor to the second line and press the [e] key, for example:


Now you can add a single entry at the end of the text to tell GRUB to guide the Linux mode of a single user. For example:


Press the [Enter] key to make the editing result take effect. The page goes to the third part of the screen. Press the [B] key and wait for a few seconds. After loading, you will face a shell prompt similar to the following. Then we enter passwd root to create a new root password. As shown in


Enter reboot to restart and enter a new password to log on.

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.