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?
sudo passwd
changed the root user's password (which you might want to disable perhaps),sudo passwd <username>
correctly changed your user's password; the issue with the keyring is that on login an attempt will be made to unlock the keyring using your user's password, but after having changed that the passwords don't match anymore. See next comment