How can I retrieve my Ubuntu login password after I forget it?

Source: Internet
Author: User

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.

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.