I am able to list the password of a particular keychain item, but I need to be able to change the password using the Terminal. I intend to write a small script that will automate such a process.
Note: I need to be able to do that using the Terminal only without any GUI!
To display the password of my keychain item, I do the following:
security find-internet-password -gs my.site.com | grep "password:"
The above command works nicely. How do I change this password? For now, let's assume that the security
and Keychain Access.app
applications have full access to the keychain item. I eventually need to find a way to give access to that keychain item via the Terminal, without any pop-ups/GUI. I have Administrator \ sudo
rights to this Mac machine.
Thank you!