How to save a Linux virtual machine by forgetting the root password

Source: Internet
Author: User

So Baidu, there are a lot of solutions. The principle is that to enter single user mode, to change the root password:

1. Reboot the system, select Linux boot, then press and hold E to display the following interface;

Press E to show the following page

Choose kernel ...

? 2. At the press of E, the following interface appears:

3.??? Enter Single:

? 4. Press ENTER to enter;

5. Press B to restart:

Write a picture summary (optional)

? 6. Enter the root password:

?

? 7. If. I mean, what if ...? If you enter passwd root, the bottom does not let you enter new password .... So... You enter the root password directly: passwd root [email protected]

8.ok, restart reboot ...?

How to save a Linux virtual machine by forgetting the root password

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.