What if I forget the root password under the CentOS system?

Source: Internet
Author: User

We are under the Linux system, the most important user is the root user, if the root user password forgotten, a lot of operations will not be done!

If you forget, how do you do it?

1, restart the boot, when the Start screen appears, press "E";

2, after the implementation of the previous step, the system will enter the Grup boot interface, select their own system corresponding to the kernel, continue to press "E";

3, after performing the previous step, then an editable interface appears, add "single" at the end, and then confirm;

Single, which means that the configuration in boot can be modified by the one-user state.

4, after performing the previous step, the interface returned to the previous interface, at this time press "B";

b, refers to the boot

5, after performing the previous step, the system will load the configuration in boot, at the end of the editable place ("#" after), knock "passwd root", and then enter two times the new password,

This completes the reset of the root user password!

What if I forget the root password under the CentOS system?

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.