Link to home
Start Free TrialLog in
Avatar of pchettri
pchettri

asked on

Mac El Capitan Key chain issue

I recently have to reset user password from terminal with reset command and then I started getting authentication error on Keychain.
I reset the keychain, deleted the keychan, re-pointed to same keychain, signed in to company icloud account ran verification and it does show error with -

Repair started
Checking keychain configuration for steve (user ID=501)
Home directory is /Users/steve
Checked login keychain
Checked settings for ~/Library/Keychains/login.keychain
Keychain can't be unlocked automatically. Please attempt to unlock ~/Library/Keychains/login.keychain from Keychain Access.
Unable to change password for ~/Library/Keychains/login.keychain. Please change password using Edit > Change Password for Keychain.
Checked default keychain
Checked contents of ~/Library/Keychains/login.keychain
No problems found
Repair completed

User keeps getting "accountsd wants to use the "login" keychain" when switching application.
Avatar of Justin Bradshaw
Justin Bradshaw

Your best bet is to unlock the keychain and try to change the password in the keychain access app as the repair log helpfully suggests.

Changing the user password usually causes this problem and apple hasn't made it easy to deal with when it happens.
Avatar of serialband
When you change the password through the System Preferences--> Users & Groups --> Change Password button it changes both the account password and the keychain password to keep the 2 passwords in sync.

When you change the password on the command line, you only reset the user account password, not the keychain password.  If you did this because the user lost the password, then there is no way to recover the keychain password.  You must delete the keychain.  The user must start over.  If the user might remember it at a later date, move the keychains to another folder.

If you do know the password, you can use the security command line tool to unlock the keychain with the known password and set the password to the current account password.
Avatar of pchettri

ASKER

I have already tried deleting key chain password. Is there any different way of deleting it. Could you suggest the detailed steps
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial