Sample Header Ad - 728x90

How to access Keychain of my user from cron?

4 votes
2 answers
3616 views
security list-keychains print: "/Users/vitaly-zdanevich/Library/Keychains/login.keychain-db" "/Library/Keychains/System.keychain" but the same command from cron return: "/Library/Keychains/System.keychain" "/Library/Keychains/System.keychain" from cron I tried security default-keychain -s "/Users/vitaly-zdanevich/Library/Keychains/login.keychain-db && security list-keychains" but result is the same. In the help of cli-utility security I did not found any other way to explicitly set the path to the db. Yes I know that Apple says that better way is to use launchd instead of cron, but I сurious to know - it is possible to manipulate my Keychain from cron?
Asked by Vitaly Zdanevich (231 rep)
Dec 29, 2016, 06:08 AM
Last activity: May 6, 2024, 07:03 PM