- Question: Q: Accountsd wants to use the login keychain
- Helpful answers
- Stop «. wants to use keychain» password prompts
- 5 Answers 5
- Mac OS X wants to use system keychain when compiling the project
- 13 Answers 13
- Here’s how to get rid of the “accountsd wants to use the login keychain” message
- Before we start
- What is accountsd?
- How to fix the “accountsd wants to use the login keychain” message
- Create a new login keychain
- Now we’ll reset the default keychains
- Finally, add Keychain
- Update your account permissions with CleanMyMac X
- Clear up your internet-related items
Question: Q: Accountsd wants to use the login keychain
MacBook asks for keychain passwords upon initial startup. The process stalls when I get to accountsd wants to use the «login» keychain. I can’t type or hit submit/cancel. All I can do is force a restart with the power button.
MacBook, iOS 10.2
Posted on Dec 22, 2016 9:46 AM
Helpful answers
Tutorial: Resolving Keychain Issues
If you can’t access your keychain , or forget your password If you can’t get into your keychain file because you’ve forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
First, if you’ve forgotten your password, you can use the «Keychain First Aid» utility to make the keychain password the same as the login password. This can be accomplished via the following process:
1. Open Keychain Access (located in Applications/Utilities)
2. Go to the «Keychain Access» menu and select «Preferences»
3. Click the «First Aid» tab
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»
7. Enter your username and password
8. Click the «Repair» button
The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
1. Launch Keychain Access (located in Applications/Utilities)
2. Click «Show Keychains» in the lower-left corner of the window.
3. Select the problematic keychain from the left-hand pane.
4. Navigate to the «File» menu and select «Delete Keychain ‘(name of keychain)'»
5. Check all options for deletion and press «OK»
6. Create a new keychain by going to the «File» menu, then «New» and selecting
7. You can now make this keychain your default if you desire by selecting it, then
going to the «File» menu and selecting «Make ‘(name of keychain)’ Default»
Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
First, you want to enable the root user:
After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your «login» keychain may not be active for one reason or another.
/Library/Keychains/ (this is the Library folder inside your user’s home folder). Find the file named «login.keychain» and double-click it.
Failing that, select the «login» keychain within the Keychain Access application and make sure it is the default keychain by going to the «File» menu and selecting «Make ‘Login’ Default»
Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
Источник
Stop «. wants to use keychain» password prompts
Because of Xcode bug I had to reset my default keychain, and since then I’m getting annoying messages like this:
Here is what does not work:
- unlock keychains
- reset default keychain
- change keychains password
- remove
It keeps popping once in 15-30 min, sometimes multiple times in a row.
Note that there are no «fix keychain» or «keychain aid» anymore in macOS Sierra Keychain Access app.
Here are two old questions with outdated answers.
I would prefer not to create access exceptions for all items, and it’s not allowed for iCloud keychain («Access for this item cannot be edited»).
5 Answers 5
Your Mac keeps asking for the login keychain password and this means The password of your macOS user account might not match the password of your login keychain.
It might also tell you that the system was unable to unlock your login keychain. That’s because your login keychain is still using another password.
If you don’t know your this password, the solution is to create a new login keychain or reset to default.
- Open Keychain Access, which is in the Utilities folder within the Applications folder.or Launchpad > Utilities > Keychain Access
- From the Keychain Access menu, choose Preferences.
- Click General, then click Reset My Default Keychain.
- Add your account login password.
- Quit Keychain Access then Restart your computer.
If you know your old password, use that password to update your existing login keychain:
- Open the Keychain Access app, which is in the the Utilities folder of your Applications folder. or Launchpad > Utilities > Keychain Access
- From the Edit menu, choose “Change Password for Keychain ‘login.’”
- Enter the old password of your user account in the Current Password field. This is the password you were using before the password was reset.
- Enter the new password of your user account in the New Password field. This is the password you’re now using to log in to your Mac. Enter the same password in the Verify field.
- Click OK when done, then quit Keychain Access.
Источник
Mac OS X wants to use system keychain when compiling the project
I am asked to type in the system admin user name and password when I compile my Xcode project. The whole message is
Mac OS X wants to make changes. Type an administrator’s name and password to allow this. Mac OS X wants to use system keychain.
Does anyone have a solution for this?
13 Answers 13
- Open Keychain Access.
- In the top-left corner, unlock the keychain (if it is locked).
- Choose the System keychain from the top-left corner.
- Find your distribution certificate and click the disclosure triangle.
- Double-click ‘Private key’ under your distribution certificate.
- In the popup, go to the Access Control tab.
- Select ‘Allow all applications to access this item’.
- Save the changes.
- Close all windows.
- Run the application.
The problem is with the Developer Certificate on Keychain which is under «System», on the left hand panel, which is always locked and requiring my password to unlock!
So just move the Developer Certificate to «login», which is always unlocked. Now your problem gets solved.
Open Keychain Access
Click on System in left pane
Unlock the System keychain top left (if it is locked)
Sort the System items by Kind so that the keys are at the top
Look for the private key that keeps asking for password
Double click on it and choose Access Control
Choose «Allow all applications to access this item»
Save changes, lock the System keychain and quit the Keychain app
Restart the application that keeps asking to modify your keychain
I was getting this problem because I had duplicate certificates in my login and System keychains. By opening Keychain Access and deleting all certificates from System that were also in login solved this problem. Hope this helps.
Move your private key from System to login in keychain access.Then move your developer certificate into login.This worked for me.
I found that problem to be of provisioning profiles. I deleted all previous provisioning profiles and then reinstalled one I needed.
In my case I went to Keychain Access, selected «system» in «Keychains» (top left). Then for each item: right click, «Get Info», «Access Control» and added Xcode in «Always allow acces by these applications:» list.
I followed a solution similar to what @krafter did but, instead of giving access to everything in the system keychain, I only needed to give add xcode to the provisioning profile under keychain -> system -> «your provision profile» -> get info -> Access Control then just added xcode. This is what worked for 4.6
Access Control settings no longer appear to save for private keys which are stored in the System keychain, so attempting to add Xcode to the whitelist there did not work for me.
In order to retain Access Control changes, I had to copy the private key + certificate to the Login keychain. This kept Xcode from bothering me when code signing archives for distribution.
Note that Xcode will halt distribution if the certificate’s Trust settings are changed (e.g. Always Allow for Code Signing); you must keep these set the System Default.
I hope there is a better solution than this, because this doesn’t feel right. But it works for now.
Источник
Here’s how to get rid of the “accountsd wants to use the login keychain” message
Before we start
Having spent some years coding applications for macOS we’ve created a tool that everybody can use. The all-round problem fixer for Mac.
So here’s a tip for you: Download CleanMyMac to quickly solve some of the issues mentioned in this article. But to help you do it all by yourself, we’ve gathered our best ideas and solutions below.
Features described in this article refer to the MacPaw site version of CleanMyMac X.
Most of the time, your Mac just works and you don’t have to worry about any of the stuff that’s going on in the background. You just start it up, log in and get to work. Sometimes, however, there are signs that all is not well.
The Accountsd notification probably means your login and keychain passwords are out of sync.
When account information is out of sync it can cause either minor irritations or major crashes. One of these apparently minor irritations, but something that is also a symptom of a bigger problem is the message “accountsd wants to use the login keychain” appearing repeatedly on-screen. In this article, we’ll tell you what accountsd is, why it keeps asking for access to the login keychain, and what you should do about it.
What is accountsd?
Accountsd is the Accounts database, part of the Accounts Framework, which starts login credentials for apps and services you use on your Mac. The Framework allows app developers to build access to accounts into their app, without them having access to your usernames and passwords. In order to work properly, the framework needs access to your login keychain, which manages usernames and passwords for accounts you use on your Mac.
Why does the message appear on my Mac?
When you first create a user account on your Mac, your login password and the password for your login keychain are in sync and systems that need to access the login keychain can do so when you’re logged in.
However, if your login password and keychain passwords become out of sync, those systems will have trouble accessing your keychain and will have to ask for permission. This can happen if you or an administrator on your Mac changes your login password. The message “accountsd wants to use the login keychain” is an indication that those passwords are out of sync.
Repair your disk permissions with a free tool! CleanMyMac X by MacPaw includes a tool that fixes broken disk permissions. A typical use case is when you can’t access a certain folder or your account permissions are out of sync. Get a free version of CleanMyMac X here.
How to fix the “accountsd wants to use the login keychain” message
As we said, above, the message appears because your login password and the password for your login keychain are out of sync. So you need to fix that.
- Navigate to Application>Utilities and double-click Keychain Access to launch it.
- Click on the Edit menu and choose Change password for keychain “login”
- If the keychain is locked, enter the previous user password for your account. If you entered the correct password, you should see a new window appear.
- Enter the previous password in the box labelled Current Password.
- Enter your current user password in the New Password field.
- Type in the new user password again in the Verify field.
That should synchronize the login keychain and user login passwords and you should no longer see the message.
Create a new login keychain
If it doesn’t work, the next step is to create a new login keychain. Don’t worry, macOS retains your old keychain and all of its passwords and account details, so you can copy them to the new keychain. When you create a new login keychain, it will be given the same password as your user account. Before you do that, you need to make a copy of your existing login keychain.
- In the Finder, click on the Go menu and choose Go to Folder.
- Type:
/Library/Keychains
Now we’ll reset the default keychains
- Go to Applications>Utilities and launch Keychain Access.
- Click on the Keychain Access menu and choose Preferences.
- Press Reset My Default Keychains.
Keychain Access will now create new empty login and iCloud keychains, which will be given the same password as your user account.
Finally, add Keychain
- In Keychain Access, go to the File menu and choose Add Keychain.
- Navigate to the keychain file on your desktop and select it. Press Add
You’ll see the keychain appear in the list of keychains in the sidebar in Keychain Access, with all your logins and passwords in it. - To copy an item from the imported keychain to your new login keychain, right-click on it in the imported keychain and choose ‘Copy [name of item]’
- Click on the new default keychain, right click on the main window, and choose ‘Paste [name of item]’.
You’ll be asked to enter the keychain password, perhaps more than once. Type in the password of the keychain you are copying from.
You can’t copy items to the new iCloud Keychain, so there’s no point importing the old one. That keychain will be populated automatically when you sync with iCloud.
You only need to import your old login keychain and add its entries to the new one if you want to carry on using your Mac with the absolute minimum of disruption. If you use iCloud Keychain, most of your usernames and passwords will be stored in that and be automatically copied to the new iCloud keychain. For others, you will be asked to enter the username and password for accounts as and when required, and they will then be stored in the new login keychain. Adding the old keychain just provides an extra level of convenience and insurance in case you forgot the passwords.
If you don’t already use iCloud Keychain, here’s how to turn it on on your Mac.
- Click on the Apple menu and choose System Preferences.
- In newer versions of macOS, click on AppleID and then on iCloud.
- In older versions, select the iCloud pane in the main System Preferences window.
- Scroll down until you see ‘Keychain’.
- Check the box next to it.
- Quit System Preferences.
If you ever need to view a password stored in a keychain, say to paste it into an app, you can do that. Launch Keychain access and click on the keychain where the password is stored. Then double-click on the keychain item and check the box next to show password. Type in the password for the keychain and press Ok. Alternatively, to copy it to the clipboard, right-click or Control-click on the login item and choose ‘Copy password’.
Update your account permissions with CleanMyMac X
Keeping passwords and user accounts secure by using keychains to store them is important in improving your privacy. But there are other ways you can do that, too. And CleanMyMac can help, by sweeping up the traces you leave behind as you use your Mac.
These traces include permissions you’ve granted to applications to use your camera, microphone, boot disk, built-in apps, or other parts of this system that are protected. They also include browser and download history, saved passwords, and autofill data for all the browsers installed on your Mac. And, importantly if you use a MacBook Pro or MacBook Air, they include the list of Wi-Fi networks you’ve connected to in the past. CleanMyMac X can revoke permissions and remove data at the press of a couple of buttons.
Here’s how to use it.
When it’s finished, you’ll see a list of things it has found, separated into categories, that could compromise your privacy. Review them one by one and check the box next to any that you want to remove.When you’re done, press Remove.
Clear up your internet-related items
The login keychain is a key tool used to protect your privacy by encrypting usernames and passwords for apps and services you use with your Mac. But there are other ways your privacy can be compromised. These include things as seemingly innocent as the list of apps you’ve opened recently, or websites you’ve visited, to permissions you’ve granted to apps, like access to your FaceTime camera, and wi-fi networks you’ve connected to in the past. It’s a good idea to audit this data regularly and delete what you no longer need. The simplest way to do that is to use the Recent Items List tool in CleanMyMac X.
Here is how it looks in action:
This clears up temporary details about:
- Recently accessed servers
- Recently launched applications
- Recently opened documents
Has it fixed the issue with accountsd? Apparently, the pop-up shouldn’t come up again.
As you can see, as well as the inconvenience of the ‘accountsd wants to use the login keychain’ message, there are a number of other issues you can run into with keychains. And many users find them confusing and daunting to manage. However, Keychain Access makes it quite easy, and by following the steps above you can get rid of the message and fix other keychain problems. And remember, CleanMyMac X can help protect your privacy in lots of ways, too.
Источник