Forgot root password solution in Linux

Source: Internet
Author: User

1: Open the virtual machine, click the ' Start ' button,

2: When the above interface appears, the keyboard input ' I ', the Grub interface appears:

3: Keyboard input E, the following interface appears:

4: Select the second row (kernel ... )

5: Keyboard input E, the following interface appears:

6: After RHGB quiet, add the above grid and the number 1 or the space and single to enter.

Here is an example of adding a space and a number 1:

Then, the system automatically goes back to the previous level of the editing interface, and then directly press the B key to restart in simple mode.

The restart process is omitted here.

After the restart is complete, the following interface, you can start to change the password.

Direct input passwd Enter can change the password, in the default case the direct return is directly modify the root Super Admin user's password, of course, you want to modify the other user password, after passwd directly with the need to change the password of the user name.

Then restart with exit.

To restart the interface:

Oh yes, finally landed successfully.

The password must be kept well in the future.

This article refers to from the "network of small Sea" blog

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.