52

The OS X Keychain keeps on popping up on my Mountain Lion Macbook. As soon as I log into my user/admin account, I'm assaulted by three Keychain prompts, one after the other:

  1. Messages Agent wants to use the "login" keychain.
  2. Mac OS X wants to use the "login" keychain.
  3. Google Chrome wants to use the "login" keychain.

To my great misfortune, it is not accepting my User (Admin) password. I have no idea why. When I hit cancel, it cycles through these three prompts. I don't know if this is a virus, a Mountain Lion bug, or what.

I would appreciate it very much if someone could help me solve the issue. I have only one user account on my computer, it is the Admin account. The other account is the Guest account, which I am writing on currently. My user account is totally hosed. I can't do anything on it. I can't even reset my keychain. By "hosed" I mean I will try to delete my keychain, and I'll type in my password, but the program will just crash.

Here are some things I have tried:

  1. Deleting the keychain from user account (program crashed when I tried to reset it)
  2. I tried to delete my User/Admin account (remember, they are the same) but when I went to User Accounts, the "minus" sign was grayed out: I could add accounts, but I could not remove my Admin account.
  3. I do not have the install disc, so I don't know how to reinstall OS X without it.

Thanks so much. I have never ever experienced this before. Don't know if it's a virus, or what!

5
  • 4
    Have you tried repairing disk permissions? (open Disk Utility -> select disk -> Click Repair Disk Permissions)
    – FDinoff
    Jun 22, 2013 at 2:43
  • Thanks for your response. I'll try this later tonight and get back to you.
    – ktm5124
    Jun 22, 2013 at 4:06
  • Hey, I'm able to use my computer again :-) Thank you so much. You have made a real impact on someone's weekend!
    – ktm5124
    Jun 22, 2013 at 4:43
  • 4
    Off topic to the original question; but, you cannot delete the last remaining administrator account. To start over, you'd need to first make a new admin, then log in with it to delete the original one.
    – Kent
    Jun 23, 2013 at 7:17
  • If you've ever changed your password, try putting in the last password you had before you updated it to the new one. It appears to have worked for me.
    – yurisich
    Sep 11, 2015 at 14:59

7 Answers 7

26

I had the same issue, and this is how I fixed it.

http://www.umkc.edu/is/support/services/macintosh/keychain.asp

The essential message by default your Mac OS logon password is the the same as the keychain password. Each time you change your Mac OS logon password your keychain password is automatically changed.

For me, my mistake, I opened the Keychain Access.app which is located in /Applications/Utilities, and within the menu bar under "Edit" is the option to change your Keychain password. Well, in my case, not knowing that it should remain synchronized with my logon, I attempted to make it, what I thought, was 'more safe' by giving it a different password.

Big mistake. The next time I logged on and attempted to use my Mac anything which had data stored in the keychain - browsers, messages, the OS - compared my logon password and my keychain password and found them to be different. Thus all those pop-up prompts are generated.

The URL has the solution. In short:

  1. Launch Keychain Access
  2. In the upper left corner is a lock, if it is unlocked - good. If it shows locked, click it, and enter the password to unlock the keychain. (you may have to use your old password to unlock it, you may have to cancel one of the symptom pop ups to get the unlock dialog).
  3. On the left side under the heading Keychains, there should be an item named login, click it
  4. From the Edit menu in the menu bar choose 'Change Password for Keychain "login"
  5. In the window that appears, the 'old' password is the 'current' keychain password' - probably something you changed intentionally and possibly recently. For the 'new' password which must be entered twice, enter the password you use for Mac OS login. This will restore the two to be the same and in sync
  6. Restart your mac; those pop-ups will hopefully stop
2
  • I only had to go as far as step 2 to fix my issue. Turned out that automatic password updates from enterprise password change cascade caused mine, so entering the old password allowed the system to update, fixing the issue.
    – Mike Lyons
    Oct 27, 2015 at 15:53
  • What if there's no "login" item on step 3? Jul 26, 2016 at 20:27
8

Keychain Demystified

What is it?

This is a subsystem BUILT-INTO OS X. It cannot be removed. It cannot be disabled. Every time you use a username and password and the app or OS asks you if you want to save this information, it's saved in your login.keychain file. Beyond that, depending on whom you ask the keychain is either..

An AES encrypted file with encryption based on the user's current password that saves all sorts of pertinent things like passwords, logins, certificates, and whatever else you want to throw it at.. OR A mysterious female-goddess who laughs at your keening wail of ignorance as you plead with her to no avail.

Where Is It?

The keychain for each user lives in ~/Library/Keychains/ and the primary one we're looking at is login.keychain The ~ above is UNIX nomenclature that refers to the 'current user's home directory'. So if you were user gschipp, then ~/Library/Keychains/ would mean /Users/gschipp/Library/Keychains/ This can be confusing, since there is a Library folder in the root of the drive. They keychain prompts that pop up are 99.999999999% of the time ONLY linked to the current user, and are therefore in their home directory within their Library folder.

Why Does It Do Me Like This?

Your keychain is an encrypted file. It is "closed" and "locked" when you're not logged in, but it "unlocks" and "opens" automatically when you login, so your applications can ask it cool stuff like, "what was the password for my AllThingsTchotchke.com account?". As long as you're logging in with the same password it was encrypted with, it'll unlock & open with no issues. Presuming you subscribe to the former definition above, when your password changes, the AES encrypted keychain no longer can "unlock" and "open", prompting you with a request to update the password, reset and start over, or continue only to be annoyed again later.

The Options

Note: These are part of the OS, again, built-in and immutable.

- CONTINUE

This is the "I'm too lazy to read, ask, comprehend, and/or weigh my options" button. Typically this is the reason that people complain about their keychain prompting them repeatedly.

When to use? NEVER

- RESET KEYCHAIN

This will ERASE the keychain. ERASE as in gone. Not recoverable. Not renamed. Not moved to the Trash. Straight up DELETED. The good news is that this will fix all the keychain issues and reset it to like the first time you logged in. The bad news is that all the passwords et al... gone forever.

When to use? ONLY If the user cannot remember their old password.

- UPDATE KEYCHAIN

DING! Choose me! This is the route that people should always take. This is unlocking the encrypted file and relocking it with a new password. Choosing this will immediately prompt for a password.. their OLD password, i.e., the one they were logging into the Mac before their changed their password. If that password doesn't work, then it's an older password that it's locked with. Key trying them until they are forced to go with the RESET option. This simple step will take care of 99.999999999% of all keychain "issues".

When you use? ALWAYS, unless the user doesn't remember their previous passwords.

5

OS X Mavericks v10.9.1: Repeated prompts to unlock "Local Items" keychain

After logging in, you are repeatedly prompted to unlock the "Local Items" keychain in multiple apps.

Note: This article is about the "Local Items" keychain, not the "Login" keychain. Please see this article for issues with "Login" keychain password.

Follow these steps to prevent prompts to unlock the Local Items keychain.

In Finder Select Go > Go to folder (⇧⌘G)
In the window that appears, type the following:

~/Library/Keychains/

Click OK.
Look for a folder with a name similar to this "A8F5E7B8-CEC1-4479-A7DF-F23CB076C8B8".
Note: Each folder has a unique number.
Move this folder to the Trash.
Immediately choose Apple Menu () > Restart… to restart your Mac.

After restarting the computer, a new folder is created in the Keychains folder with a name similar to "4B29A0BB-599D-47FC-A2D1-42B5592B130B". There is no need to repeat the steps in this article, or to delete this folder. The new folder is expected and corrects the symptom described in this article.

1
  • 1
    Waaaaaaait... this seems to just REMOVE the keychain and all your passwords (wifi, sites, whatever) in it. No-go for me.
    – mik01aj
    Jan 30, 2017 at 17:43
3

None of these answers worked for me and the Keychain Access kept crashing. I was able to fix it by removing the keychain manually:

  1. Go to Library/Keychains (in Finder, go the the "Go" menu and hold down the option key, the Library folder will then show up in the list)
  2. Move all the files from that folder to a temporary backup location (on your desktop for example)
  3. Go to Library/Cache and delete everything (not sure if this step is required but it doesn't hurt).
  4. Reboot

A new keychain will be created and the popups will be gone. You've also lost all your saved passwords, so this should be a last resort. I had no option though. If this still doesn't fix the problem, delete the contents from the Keychains folder and restore the backup you created, then look for another solution...

1
  • This solved the issue for me, when KEychain Access was crashing and wouldn't unlock.
    – Lee
    Aug 1, 2016 at 15:15
1

Your keychain is corrupt. Follow the steps above, but instead of changing your password, delete the keychain. Note that this will remove all saved passwords on your computer (i.e. gmail.com), but that's not big deal. Just re-enter/save them. Here would be the steps...

  1. On the top right corner, click on the magnifying glass and type "Keychain Access.)
  2. On the top left corner of the keychain screen, you will want to delete the 'login' keychain. No need to reset the computer, the problem will go away.

I've seen this a ton of times with my mac clients and this solution works every time.

2
  • Why would the keychain be corrupt? Your solution will work, I think, but it is not the best solution. So your clients have to re-enter all there passwords. I think that @Hunt is right, just sync the password with your account password.
    – adriaan
    Nov 24, 2014 at 9:05
  • 1
    Re-entering all passwords is “not a big deal” for you? This means that you’re not using your keychain correctly. For me, this would simply be impossible since I (obviously!) don’t have these passwords elsewhere (apart from backups), and they’re all unique, randomly generated strings. The way the keychain is supposed to be used. Jun 9, 2016 at 20:58
0

Just something I randomly found when I kept getting login prompts

With Key Chain Access open and the offending key chain selected.

Edit>Change Settings for Key Chain...

Make sure Lock after 5 minutes of inactivity is not checked.

I am not sure how it got checked to begin with but this solved my problem!

0

I couldn't change the password as was suggested earlier, and I was super frustrated.

What worked was to go to Keychain (From Launcher), click Keychain Access from the menu bar, select Keychain First Aid, enter your password you use to login to you MacBook when you start the Mac, select repair rather than verify, then start.

A message will advise that the repair has been fixed. You will find the messages gone, if this is your issue. Hope it helps!

You must log in to answer this question.

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