How do I reset my keyring password?
When you change or reset your password, a host of other things are changed at the same time. If you have a Unix/Linux based operating system such as Fedora, Centos, Ubuntu, or even Mac OS X, one of these things that can change is your keyring, a file that contains saved passwords to sites and applications. If you do not change or reset your password cleanly, a disconnect can occur between your current password to the computer and the password to the keyring file.
Mac:
After you or your Mac administrator resets the password of your macOS user account, your Mac might ask you to update your keychain password or enter the password of your login keychain. It might also tell you that the system was unable to unlock your login keychain. That's because your login keychain is still using your old password.
If you know your old password
If you know your old password, use that password to update your existing login keychain:
- Open the Keychain Access App, which is in the the Utilities folder of your Applications folder.
- From the list of keychains on the left side of the window, select "login."
- From the Edit menu in the menu bar, choose “Change Password for Keychain 'login.'”
- Enter the old password of your user account in the Current Password field. This is the password you were using before the password was reset.
- Enter the new password of your user account in the New Password field. This is the password you're now using to log in to your Mac. Enter the same password in the Verify field.
- Click OK when done, then quit Keychain Access.
- Restart your computer.
If you don't know your old password
If you don't know your old password, the solution is to create a new login keychain
- Open Keychain Access, which is in the Utilities folder within the Applications folder.
- From the Keychain Access menu, choose Preferences.
- Click General, then click Reset My Default Keychain.
- Authenticate with your account login password.
- After you enter your new password, Keychain Access creates an empty login keychain with no password. Click OK to confirm.
- If you don't see a Reset My Default keychain button, close the preferences window
- Select the “login” keychain from the left side of the Keychain Access window.
- Press the Delete key,
- Then click Delete References.
- If you don't see a Reset My Default keychain button, close the preferences window
- Quit Keychain Access.
- Restart your computer.
Centos:
- Open a terminal and type in: seahorse
- This will open a GUI window with passwords and keys
- You can then right click each password you set and delete the password if it was forgotten.
- After deleting the desired passwords, restart the computer
or
- Open a terminal
run the following commands
$ cp ~/.local/share/keyrings/login.keyring ~/Desktop/ # Create backup of your keyring $ rm ~/.local/share/keyrings/login.keyring
- restart the computer
The following links provide more information and alternative solutions:
askubuntu.com/questions/32164/what-does-a-keyring-do
http://superuser.com/questions/381428/why-am-i-always-asked-to-unlock-my-login-keyring-at-startup
https://ask.fedoraproject.org/en/question/38840/how-can-i-change-the-keyring-password/
Related articles