MacOS – Why am frequently asked for access to the Keychain

keychainmacbook promacosscreensaversleep-wake

Since using Migration Assistant to move from an old iMac (2009) to a new MacBook Pro, I find that I'm repeatedly asked for access to my Keychain. Prior to moving to the new machine, once I unlocked my Keychain, I was never asked for access to it again, but now I find that I'm often asked to provide the Keychain password. Sometimes this seems associated with periods of system sleep, but not always.

enter image description here

At first, I thought this was the result of the Keychain locking during sleep, or perhaps for some other reason so I made sure to adjust the settings for the "login" Keychain (using "Change Settings" in the keychan's context menu) so that it would not lock when the screensaver is on or after inactivity:

enter image description here

enter image description here

However this only seems to have been partially effective. In particular, there's no way to make the same adjustment to the "Local Items" Keychain so that preventing it from locking automatically is beyond my control:

enter image description here

enter image description here

How do I ensure that my Keychains remain unlocked once I've unlocked them? Why has this behavior suddenly appeared on my MacBook, when it was not present on my iMac?

Best Answer

The Local Items keychain was introduced on Mavericks and holds iCloud keys for offline use.

However, sometimes OS X will repeatedly ask you for the password. This can be solved by deleting the folder named with an UUID like A8F5E7B8-CEC1-4479-A7DF-F23CB076C8B8 from ~/Library/Keychains/ and then reboot. No keys will be lost in this process.

This is described here: http://support.apple.com/kb/TS5362