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