How can I retrieve my Ubuntu login password after I forget it?
It's useless for a long time. When I log on to Ubuntu again, I will remind you that the password is incorrect. Then I enter the guest session and can still go to the system for work, but my identity is guest. So I started to find the password for a long time.
First, in guest mode, there is an option in the upper-right corner to return to the user mode, but you still need to enter the password. If you enter an error, it will enter the guest again. I tried several passwords repeatedly and found that I could not find them. I only needed to set a new password through the system and log on again with the new password.
1. After Ubuntu is started, press shift to go To the grub menu.
2. Select recovery mode and enter
3. Select root drop to root shell prompt and enter in the recovery menu.
4. Go to the shell interface and run the passwd command to set the new password: passwd syt (syt is the user created by the system and the user who wants to retrieve the password)
5. Enter the new password, and then enter the new password again. The password updated successfully is successfully displayed.
6. Here is my focus. The authentication token manipulation error occurs.
Passwd unchanged
7. Here, there are many solutions to authentication token manipulation error on the Internet about modifying file operations or memory partitions, but I am very simple because I have no permissions!
8. Enter "mount-o rw, remount/" in the command line /"
9. After obtaining the password modification permission in Step 8, repeat Step 4 and Step 5 to see the successfully prompt.
10. sudo reboot and restart. enter a new password to log on to the syt user you are looking.