Retrieve the Ubuntu account password

Source: Internet
Author: User
I used to lose the password of a test machine. Fortunately, Ubuntu supports password retrieval, but this also indicates a problem. Once Ubuntu is obtained, all the security mechanisms completely disappear. The following describes how to retrieve the password: 1. start 2. in the grub boot list, press ESC3. e to modify the option 4 for normal startup. in the kernel *** line, press e5. add rwinit =/bin/bash6at the end. Press OK. 7. press B to start. At this time, you are using the root user.

I used to lose the password of a test machine. Fortunately, Ubuntu supports password retrieval, but this also indicates a problem. Once Ubuntu gets the keyboard, all security mechanisms disappear completely. The following describes how to retrieve the password:

1. boot

2. In the grub startup list, Press ESC

3. Press e to modify the option that is usually started.

4. In the kernel *** line, press e

5. Add rw init =/bin/bash to the end.

6. Confirm

7. Start by B

You are using the root user, so be careful not to press other commands unless you know what you are doing.

8. passwd <User Name> To reset your password

9. Restart shutdown-r now

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.