Issues with Keychain changes

maiksanftenberg
Contributor II

HI.

We want to ensure that the keychain of our users do not longer have any timeouts.
To do so we have a script/command in place that should resolve this.
sudo -u $currentUser security set-keychain-settings /Users/$currentUser/Library/Keychains/login.keychain

It's working when running it locally on the machine but not via Casper.
The error message is:
security: SecKeychainSetSettings /Users/XYZ/Library/Keychains/login.keychain: User interaction is not allowed.

Any idea what the issue could be?
Thanks

0 REPLIES 0