OSX - Disable keychain password prompts

3

How do I disable the OSX keychain password prompt? This machine is our local build server (running hudson). Everytime the automated build script runs code signing, the keychain pw prompt pops up and halts everything.

John2496

Posted 2011-04-28T14:02:45.700

Reputation: 1 989

Answers

5

Always allow access to that keychain item when asked.


Open /Applications/Utilities/Keychain Access and make sure that the keychain containing the relevant item(s) is unlocked, and will not lock automatically by selecting Edit, Change Settings for Keychain....

Daniel Beck

Posted 2011-04-28T14:02:45.700

Reputation: 98 421

Thanks! side note: Edit->Change Settings for "System" Keychain is always greyed up (even when unlocked). To change the settings for the System keychain, you need to Right click on keychain -> click "Change Settings for Keychain "System", then Disable Inactivity & Sleep Lock. – John2496 – 2011-04-28T14:38:27.237

6

You can remove the "Lock after X minutes of inactivity" setting with the following command:

security set-keychain-settings ~/Library/Keychains/login.keychain

Note that if Keychain Access is open when you run this command, you'll need to close it and reopen to see the change in the keychain settings dialog.

phatblat

Posted 2011-04-28T14:02:45.700

Reputation: 191

Great for automating, thanks! – Josh Correia – 2020-01-13T22:43:46.860