Safari asks for Keychain access password everytime I open it – [ FIXED ]

PCMacSafari asks for Keychain access password everytime I open it -

If you are using your MacBook for business purposes, you can save time by enabling the Safari Web browser’s AutoFill feature to automatically enter your personal information into Web page forms for you. For example, AutoFill can take care of your user name, password an credit card information when you log in to a site or enter your contact information into a form. However, if you want to prevent unauthorized people from using your MacBook and accessing pages with your personal information, you can disable the AutoFill feature.

What is Keychain and Keychain Access?

The keychain file stores a variety of information including a title, URL, notes and password. Only the passwords and Secure Notes are encrypted. A keychain can store all your passwords for applications, servers, and websites, or even sensitive information unrelated to your computer, such as credit card numbers or personal identification numbers (PINs) for bank accounts.

Keychain Access is a Mac OS X application that allows the user to access the Keychain and configure its contents, including passwords for websites, web forms, FTP servers, SSH accounts, network shares, wireless networks, encrypted disk images, etc.

The default keychain file is the login keychain, typically unlocked on login by the user’s login password, although the password for this keychain can instead be different from a user’s login password, if changed for additional security. In Mac OS X, keychain files are stored in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/, and the Keychain Access GUI application is located in the Utilities folder in the Applications folder.

The keychain can be set to be automatically “locked” if the computer has been idle for a specified time, and can be locked manually from the Keychain Access application. When locked, the password has to be re-entered next time the keychain is accessed, to unlock it. Overwriting the file in ~/Library/Keychains/ with a new one (e.g. as part of a restore operation) also causes the keychain to lock and a password is required at next access.

When you connect to a network server, open an email account, or access any password-protected item that is keychain-aware, your keychain can provide the password to it so you don’t have to type the login password.

You start with a single keychain, which is created automatically the first time you log in to your Mac OS X user account. Your default keychain has the same password as your login password. This keychain is unlocked automatically when you log in to Mac OS X and is referred to in Keychain Access menus as the “login” keychain.

When keychain problems occur?

Keychain problems occur when a user’s login password does not match their keychain password.  This can be caused by using authentication methods other than the standard OS X local account system.For example, in your Office or University Mac you log in with your Domain or Exchange account credentials. However, when a user changes their Domain or Exchange password, or you reset your OS X log in password using OS X system recovery, Keychain does not recognize the change automatically

When the password used to log into the machine does not match the current keychain password, the keychain does not unlock for use with password management.  The user is able to log onto the machine, but applications that use the keychain system, such as Safari or Outlook, will give the user an error message stating that the application wants to use the “login” keychain.  It will ask for the keychain password. Pic-30(a) below shows a typical keychain request for Safari.

If a user clicks cancel, the message will return again.  If a user clicks Cancel a second time, the message goes away and the application continues to open. However, if the warning is cancelled, saved password information will not be available while using the application.

Changing your keychain password

When a keychain mismatch occurs, the user must change their keychain password to match the password used to log on to the machine.  To correctly change your keychain password, the user will use the application Keychain Access. Keychain Access is located in ApplicationsUtilities.

To change your keychain password:

    1. Select “login” under the list of keychains.
    2. From the menu at the top of the screen, click Edit.

Change password for keychain.
Keychain

  1. Select Change Password for Keychain “login”.
  2. Enter the current keychain password. Remember that the “current” keychain password is the password previously used to log into the machine, before your most recent password change.
  3. Enter your new password and verify.  The new password you enter should match the password you used to log into the machine.

When Users cannot change their keychain password?

Sometimes a user will be unable to change their keychain password.  This can occur if a user forgets what their previous login password was. Also if a keychain has become corrupt, you will not be able to change it. In those instances, it may be necessary to manually delete and recreate your keychain.

WARNING!  Manually deleting your keychain will effectively erase all stored passwords on the machine.  You will have to re-enter passwords that are normally provided for you automatically.  Online passwords such as logging on to websites in Safari will have to be re-entered into your new keychain.

Manually deleting the keychain

Method 1. This should only be attempted by advanced users or tech support personnel.
1. Delete the user’s login. keychain file (or move it to a different location). This can be found in the Keychains folder, which is located in the User’s Library folder.

safari keeps asking for login keychain password
KeychainPath


2. Relaunch Safari, or the afflicted app. On relaunch you will be presented with the ‘Keychain Not Found’ dialog box which states that ‘A Keychain cannot be found to store “Safari” [or other app]‘. Click ‘Reset To Defaults’.

safari keeps asking for login keychain password
Reset the keychain to default


3. A dialog asking you to confirm the keychain reset appears. Click “Yes”.

safari keeps asking for login keychain password
Reset the keychain to default

4. Finally you will be prompted to enter the user’s login password in order to create the new keychain. Do so and click ‘OK’.

safari keeps asking for login keychain password
safari keeps asking for login keychain password


5. Relaunch Safari or the afflicted app. That’s it! Problem solved and no more dialog boxes.

Method 2.
1. Open Keychain Access (located in /Applications/Utilities).
2. Go to the File menu and select Delete Keychain “Login.”.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

3. A confirmation dialog box appears/Select “Delete References & Files”

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

4.Now quit the Keychain and you will no longer be bugged by Keychain password prompts.

Important Note: If a network or mobile account password is changed by an administrator, or if the password expires as part of a directory security policy, the keychain must be updated upon next login. In most cases the OS will prompt the user with the message “The system was unable to unlock your login keychain”, followed by these options…
 
Continue Log In;
Create New Keychain;
Or, Update Keychain Password (default and recommended choice).
In this scenario also you should update or change your Keychain Password.
 

Miscellaneous
Safari saves user names, passwords, and credit card information in your OS X keychain. If you set up your Mac and other devices for iCloud Keychain, iCloud pushes all that information to your other devices’ keychains.

Important:

Safari autofills your information for anyone you let use your Mac. If you set up iCloud Keychain on your Mac and other devices, Safari also autofills your information for anyone you let use those devices.
For security, set up your Mac to display the login window when it starts up and to require a password after sleep or a screen saver begins. Set up your iOS devices to require a passcode to unlock the screen.

Issue: Safari asks for keychain login password everytime I open it when you know the correct password.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
Reason 1. The problem is that your “login” keychain is locked. So, every time Safari wants to access it (for whatever reason), it has to get a password to temporarily unlock it. But, if you keep “login” unlocked permanently, your problem will be solved. Here are steps to permanently unlock your keychain:
 
1. Open Keychain Access (located in /Applications/Utilities)
2. Go to the “Keychain Access” menu and select “Preferences”

3. Click the “First Aid” tab

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

 

4. Make sure the “Synchronize login keychain password” box is checked
5. Close the Preferences window.
6. Go to the “Keychain Access” menu and select “Keychain First Aid”

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password

7. Enter your username and password
8. Click the “Repair” button and click “Start”.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
9. Now, the password for ‘login’ will be the same as the password for your account.
10. Go to the “File” menu and select “Unlock Keychain ‘login'”.
11. Type your account password and then press OK.
12. You are done! Safari shouldn’t ask you for a keychain password, and neither should any application, for that matter.


Reason 2. Your Keychain preference files may be corrupted. Locate this file

/Users/YourName/Library/Preferences/com.apple.keychainaccess.plist.

Drag that file from your Preferences folder to the Trash and restart your Mac.You need not to fear losing the data stored in your keychain when you move/Trash this file. The com.apple.keychainaccess.plist file doesn’t contain any of your keychain data.

If that doesn’t help…

1) Quit Safari.
2) Open Keychain Access. (Applications/Utilities) Find the “Safari AutoFill” item. Delete it.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password


3) Relaunch Safari. Next time it asks for authorization, click “Always Allow”.
If Safari is set to automatically fill in forms for you, you can turn off this feature and delete any information that Safari stored.

  • Open Safari if it is not already open.
  • Choose Safari > Preferences, and then click AutoFill.
  • Click the three check boxes next to the “Using Info from my Contacts Card,” “User Names and Passwords” and “Other Forms” options to uncheck them. This prevents Safari from using AutoFill when you visit websites that have forms for you to fill in.
Now next to “Other forms,” click Edit.
A list of websites where you normally fill in information such as your name and email address appears.
Select individual websites and click Remove, or click Remove All.
Click Done.

Note: If above shown method does no good (though I’m not sure why it wouldn’t), launch Keychain Access, choose Preferences from the Keychain Access menu, and in the General tab of the resulting window, click the Reset My Default Keychain button. You’ll be prompted for your administrator’s password. When you choose this option your old default keychain (which is likely the “login” keychain) is renamed and a new empty login keychain is created. You do this simply to get a fresh start. All your old keychain entries will be gone, so we’ll hope that you’ve written down your passwords and login information so you can reenter them when prompted.

Safari keeps asking for login keychain password
Safari keeps asking for login keychain password
Nasir Sohail
Nasir Sohail
Nasir is a software engineer with an M.Sc. degree in software engineering and various certifications related to computer hardware and networking, such as MCSE, CCNA, RHCE. He has more than 15 years of mixed industry experience mostly related to IT Support, Web development and Server administration. He also offers his freelancing gig for IT support and consultancy and has more than 300 five-star reviews across platforms like Fiverr, Google, TrustPilot, etc.
Watch & Subscribe Our YouTube Channel
YouTube Subscribe Button

Latest From Hawkdive

You May like these Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.