trio.so
How-Tos

How to Fix Keychain Problems on Mac: Password Not Working, Reset, Repair

Mac keeps asking for the keychain password? Why it stops matching your login password, how to update or reset the login keychain, and fix common errors.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

The keychain password on a Mac is normally the same as the login password of the account. When a Mac keeps asking for it, the usual cause is that the account password changed and the login keychain still uses the old one. Enter the old password to update the keychain. If you do not remember it, resetting the default keychain fixes the prompts but deletes the saved passwords in that keychain.

What the keychain password is, and Keychain Access on Mac

The login keychain holds saved passwords, certificates and secure notes for your account. It is locked with a password that matches your Mac login password, so it opens when you log in. The Keychain Access app (in Utilities) is the tool for it, and recent macOS versions also keep passwords in the Passwords app. Apple's guidance is Keychain Access: change or reset your keychain password.

Why the Mac asks for the keychain password

  • The login password changed and the keychain did not follow. This is the most common cause. A password reset by an admin, in a directory or in a web portal changes the account but not the keychain.
  • The keychain is locked or damaged. A failed update or a restore can leave it unable to open.
  • An app is asking for its own saved item. Choose Always Allow if the app is trusted, or the prompt returns each time.

Update the keychain password

If you know the old login password, this keeps your saved passwords.

  1. When the Mac asks for the keychain password, enter your previous login password. If it opens, macOS offers to update the keychain.
  2. Or open Keychain Access from Spotlight, select the login keychain, and choose Edit > Change Password for Keychain "login". Enter the old password, then the new one.
  3. Log out and back in to check the prompts have stopped.

Reset the login keychain on a Mac

Use this when you do not know the old password. Apple recommends it only when advised, because resetting deletes all the passwords saved in the keychain. If you forgot the old login password, the old contents stay out of reach and a new blank keychain is created.

  1. Back up first: export what you can from the Passwords app or copy ~/Library/Keychains to a safe place.
  2. Open Keychain Access.
  3. Choose Keychain Access > Settings and click Reset Default Keychains.
  4. Choose Apple menu > Log Out, then log back in. Save your current login password in a keychain when asked.

After a reset, sign in again to apps and websites that relied on saved passwords. Mail, Wi-Fi and iCloud may need credentials. If iCloud Keychain is on, your passwords may sync back from iCloud.

"A keychain cannot be found to store" error

Apps such as Mail and Safari show "A keychain cannot be found to store" followed by an item name when the Mac has no usable login keychain to save to. It often appears after an account was renamed or migrated, a home folder was restored, or the keychain file was deleted.

  1. Quit the app that shows the error.
  2. In Finder, choose Go > Go to Folder, enter ~/Library/Keychains and look for a login.keychain-db file. If it is missing, the Mac has no login keychain.
  3. Open Keychain Access and choose Reset Default Keychains as above. This creates a fresh login keychain.
  4. Log out and in, and reopen the app.

If this follows a rename of the home folder, see how to change the user name and rename the home folder.

Keychain problems on managed Macs

On a Mac that signs in through a directory or single sign on, the password can change away from the Mac, so the local keychain never hears about it. After a directory or SSO password change, the user is asked for the keychain password at the next login. Tell users to enter the old password once so it can sync. If a user has lost the old one, a reset is the only route, and the saved passwords are lost. See how to add a Mac to Active Directory and two factor authentication on Mac. If you also hold a FileVault recovery key for the Mac, keep it separate from this keychain: see how to find the FileVault recovery key on Mac.

Related reading: Mac administrator account.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Fix Mac problems from a console, not from a desk visit

trio.so manages your Macs from one console: policies, apps, remote commands and a live terminal. Start a 14-day free trial.

Start free trial

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.

The password that opens your login keychain. It normally matches your Mac login password.

Open Keychain Access, choose Keychain Access > Settings, click Reset Default Keychains, then log out and back in. It deletes the saved passwords in that keychain.

Usually the login password changed and the keychain still uses the old one. Enter the old password once to update it.

Related

From the blog

The related industry news, interviews, technologies, and resources.