Fixed : Keychain not working after El Capitan


Are you can’t access keychain?  forgot password? cannot access keychain file because it is corrupt? We have some options to fix it.
Fix 1 : Use keychain first aid utility (If you forgot the password)
When we forget password we can use the “keychain first aid” utility, Use the login password same as the keychain password, to do follow the below steps.

  1. Open Keychain Access that is located in Applications/Utilities.
  2. Then Go to the “Keychain Access” menu and select “Preferences”. Click the “First Aid” tab. Make sure the “Synchronize login keychain password” box is checked.
  3. Now Close the Preferences window.
  4. Next go to the “Keychain Access” menu and select “Keychain First Aid”.
  5.  Enter your username and password. Finally Click the “Repair” button.

Fix 2 : Delete and recreate keychain (If you get keychain file corrupted message)
Another solution is completely delete keychain then recreate it. This option is selected  when  keychain appears to be corrupt or otherwise inaccessible. We can follow the steps below.

  1.  Launch Keychain Access that is located in Applications/Utilities. Then  Click “Show Keychains” in the lower-left corner of the window.
  2.  Select the problematic keychain from the left-hand panel and  Navigate to the “File” menu and select “Delete Keychain ‘(name of keychain)'”.
  3.  Then Check all options for deletion and press “OK”.
  4.  Create a new keychain by going to the “File” menu, then “New” and selecting “New Keychain”.  Make this keychain our default if  desire by selecting it, then going to the “File” menu and selecting “Make ‘(name of keychain)’ Default”

Fix 3 : Login as root user and repair
We can Login as root and repair to resolve problems with keychains. In some case logged in as the root user helps. To enable as the root user the following steps help.
To Enable the root user

  1. Choose Apple menu > System Preferences, and then click Users & Groups.
  2. Click the lock icon to unlock it, and then type an administrator name and password. In the Network Account Server section, click Join or Edit.
  3. Click Open Directory Utility.
  4. Click the lock icon to unlock it, and then enter your administrator name and password.
  5. Choose Edit > Enable Root User, and then enter a root user password in the Password and Verify fields.
  6. Be sure to specify a secure password.

To Disable the root user

  1. Go to Apple menu > System Preferences, and then click Users & Groups.
  2. Click the lock icon to unlock it, and then type an administrator name and password.
  3. Here, In the Network Account Server section, click Join or Edit.
  4. Click Open Directory Utility. Then Click the lock icon to unlock it, and then enter your administrator name and password.
  5. Next Choose Edit > Disable Root User.

Change the root user password

  1. Choose Apple menu > System Preferences, and then click Users & Groups.
  2. Click the lock icon to unlock it, and then type an administrator name and password.
  3. Here, In the Network Account Server section, click Join or Edit.
  4. Click Open Directory Utility. Then Click the lock icon to unlock it, and then enter your administrator name and password.
  5. Choose Edit > Change Root Password, and then enter a root user password in the Password and Verify fields.
  6. Be sure to specify a secure password.

Enable root user and login with that account. Again open keychain access. If we are asked for passwords, the login keychain may not be active for some reason in such case,

  1. Go to library folder inside your home folder ~/Library/Keychains/  and  find the “login.keychain” file & double-click the file.
  2. If that doesn’t work then, choose the “login” keychain within the Keychain Access app.
  3. Make sure it is the default keychain by going to the “File” menu and selecting “Make ‘Login’ Default”. Then Turn off Keychain synchronization in applications having problems.
  4. If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.

Fix 4 : Disable everything in mac privacy tap 
Disable everything on the Privacy tab below. When we  suspect Karabiner is causing the issue, we can use this fix and all starts working well again.mac security and privacy settingsFix 5 : Disable magicprefs
In case is the problem with magicprefs, we have a utility to let define additional mouse and trackpad gestures. Disabling MagicPrefs allows Keychain to see Allow/Allow All mouse clicks.
Frix 6 : Reset the keychain
Reset the keychain or completely reset the Keychain folder in the User’s Library.

  1. Open Keychain Access, which is in the Utilities folder within the Applications folder. From the Keychain Access menu, choose Preferences.
  2. Click General, then click Reset My Default Keychain. Then Authenticate with your account login password.
  3. Then Quit Keychain Access and Restart your computer.

mac keychain access settingesFix 7 : Find the app which cause issue

  1. Some apps like Alfred, TextExpander, or MagicPrefs that might be stealing focus when clicked “Allow” or “Always Allow”.
  2. Need to figure out which app is doing this but quitting them one-by-one and checking to see if the problem goes away.
  3. Then find the offending app, Go to [System Preferences > Security & Privacy > Accessibility] and add the offending app to the list.

If you knew any other solutions to fix “keychain not working after El Capitan” issue, inform us via comment.

6:32 am

Leave a Reply