I changed my user password, but now i can't login. What can i do? [duplicate]
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?
41 Answer
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 /homeRemember your username from the list.
Change your password.
passwd your_usernameType your new password and Press Enter.
Exit the terminal.
exit5Press Enter.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"