47

How do I reset my main keychain and completely delete the old one? I changed my password and its been coming up with all of these popups asking for my new password when I first login. If anyone can help with updating my keychain I would appreciate it or you can just help me completely delete and reset it.

38

Try running Keychain's Repair Tool by opening Keychain from your /Applications/Utilities folder, then from the menu bar choose Keychain Access, then Keychain First Aid, then enter your password, verify then start it. If there are any problems click Repair then Start. (via Apple Support)

If that doesn't work then try Resetting your Keychain. Via Apple's Instructions you just need to do these steps:

  1. Open Keychain Access, which is in the Utilities folder within the Applications folder.
  2. From the Keychain Access menu, choose Preferences.
  3. Click General, then click Reset My Default Keychain.
  4. Authenticate with your account login password.
  5. Quit Keychain Access then Restart your computer.
  • Reset doesn't work, returns "UNIX[Invalid argument]" – Brian Knoblauch Jul 26 '16 at 17:25
  • 20
    Unfortunately, time is not on the side of this answer - El Capitan has no Keychain First Aid. – Tetsujin Sep 14 '16 at 19:57
  • 2
    On macOS Sierra there is no First Aid and when I went to reset my keychain I got a message saying the operation could not be completed. But all of a sudden my keychain was completely empty. I logged out and logged back in and I had to re-enter many account passwords-- so it looks like it may have worked. – Nick Woodhams Jan 25 '17 at 18:12
  • 1
    @SGSVenkatesh The error was present but it did actually work. The keychain was reset. – Nick Woodhams Feb 8 '17 at 20:25
  • 1
    For others who may come across this: open Keychain access. Select the login keychain. Select Edit -> Change password for keychain login. Note: if the option is disabled, from the top menu, create a new keychain called "test", right click on it and make it the default keychain. Proceed to reset the login keychain's password, and when done, make it the default keychain again. Delete the test keychain`. – ahash Jan 11 at 4:25
14

Synchronise your user account and keychain passwords!

The password of your macOS user account might not match the password of your login keychain. Either create a new login keychain or update it with your new password.

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 don't know your old password, the solution is to create a new login keychain.

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 Edit menu, 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.

Taken from mac support: https://support.apple.com/en-gb/HT201609

14

Along the same lines:

"You can safely delete the Keychains folder (or just the folders inside it) in your home directory

eg. /Users/yourusername/Library/Keychains

this folder can be deleted. It will be recreated on login."

Or you can access the Library folder by going to Finder >> Go and holding down the option key.

enter image description here

This worked perfectly for me.

Source: https://discussions.apple.com/thread/2355503?tstart=0

Make sure you restart the computer after deleting the folder before doing anything else Very Important!!

  • 1
    Not the entire folder, just the folders inside of it. Most of them have capitalized letters with some numbers. (ex: ISF8-S9DV-DI5G ....etc.) – Melvin Jefferson Feb 16 '18 at 21:10
  • 2
    This is the best answer for this topic since the First Aid in the Keychain Access does not exist in Sierra and above. – Cesar Bielich Apr 11 '18 at 21:21
  • 1
    Thank you for the feedback guys and helping improve the answer. – chainwork May 1 '18 at 21:44
  • Isn't deleting the keychaing going to delete all the stored passwords? Or am I missing something? – Kamafeather Aug 27 at 12:09
5

In High Sierra, my login keychain was stuck on the previous password. I tried to set it in Keychain Access but the item in the Edit menu was greyed out.

I found a suggestion on https://www.jamf.com/jamf-nation/discussions/28449/change-password-for-keychain-login-greyed-out to use the security command-line utility in the Terminal to set the keychain password to my new login password. Just security set-keychain-password with no further arguments failed after asking for the old and new password, but I then discovered with security default-keychain the full path name to my login keychain:

bash$ security default-keychain
    "/Users/myself/Library/Keychains/login.keychain-db"

bash$ security set-keychain-password "/Users/myself/Library/Keychains/login.keychain-db"
Old Password:
New Password:
Retype New Password:

bash$

You would obviously replace myself with your login name, or copy-paste the result from default-keychain if it looks radically different from mine. (You can save yourself the copy/paste with security default-keychain | xargs security set-keychain-password.)

  • 1
    In my case, Mojave had created a new keychain, but the old one was saved as login_renamed_1.keychain-db. Ran security set-keychain-password on that, then renamed the current login.keychain-db out and the renamed one in, rebooted. Worked great. – Hafthor May 22 at 20:54
3

Previous answers didn't work for me. Apple Tech Support solution that works in removing the keychains completely :

  • Go to Finder page : Choose GO, Choose Library, Choose Preferences
  • Move all reference to keychain to Trash bin.
  • Reboot iMac and when prompted to change or reset Keychain
  • Choose Change Keychain
  • Reboot system & NO MORE PROMPT FOR Keychain password!!
  • 1
    Note that you must hold down option key when looking at GO menu for Library option to appear – Colin Feb 15 '17 at 13:08
  • 1
    did this make you enter the password for every thing again ? I mean were all your passwords lost? – nr5 Jun 17 at 9:24

You must log in to answer this question.

protected by Community May 10 '17 at 12:53

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .