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