0

Changing it via sudo passwd said it was changed sucessfully, but when I log out and log back in the new password doesn't work. However it'll take the old password. So I tried sudo passwd (my prifile name) and went through the password changing steps, And it worked, but when the desktop loaded I was greeted with it saying my login password and login keyring didn't match. So it made me enter a password. When I tried my new password it didn't work. So I tried my old password and that worked. So I don't know what to do. I need them to be the same. (Ubuntu 20.04)

Edit: So I logged out and back in but this time it didn't give me the issue so what's happening?

1 Answers1

1

sudo passwd will change the root user's password, while passwd will change the current user's password.

Therefore, using passwd instead of sudo passwd would help.


You can reference to this post: https://superuser.com/questions/1512033/difference-in-passwd-and-sudo-passwd