Get back your forgotten Ubuntu username and password

Source: Internet
Author: User

Get back your forgotten ubuntu username and password

The front-end time uses vmware to install a ubuntn virtual machine, but tired of after the installation of graphics driver problems, look at the interface is a bit bored, dropped. When I opened the virtual machine today, I forgot my password and wondered if I should reload it. Now, record the process .

1. Restart the system, press the SHIFT key when the machine restarts , and enter the following grub interface

2. Select the Advanced options for Ubuntu option, go to the next Selection page and select Recovery mode

3. Select Drop to root shell prompt

4. Enter passwd ubuntu (Ubuntu) and discover that the user does not exist.

5. View all users of the system, enter cat/etc/passwd

6. Re-enter the passwd user name, and according to the prompt to change the password, we can see the error in the picture.

7. Enter mount-o rw,remount/Modify the permissions of the root file system and re-modify the password.

8. Sudo reboot reboot the system to

Get back your forgotten Ubuntu username and 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.