a few minutes ago I changed my Ubuntu user password. Then I turned off the computer and turned it on. After I entered the new password, the system would tell me that the password was wrong. I tried to enter the old password, but without success. Now, I can't log into my computer and I can't even reset my password. What can I do?
Asked
Active
Viewed 6,631 times
1 Answers
2
You can do it from recovery mode.
Reboot from lock screen.
Press esc while rebooting.
Go to Advanced Options for Ubuntu.
Go to Ubuntu, with Linux 4.##-generic (recovery mode).
Got to root.
Press ctrl+d.
Now execute the following commands...
Remount root with write access.
mount -rw -o remount /
It should not output anything.
List users.
ls /home
Remember your username from the list.
Change your password.
passwd your_username
Type your new password and Press Enter.
Exit the terminal.
exit
Press Enter.