When I try to access a keychain password using the keychain access GUI, I always get a dialog box for inputting the current keychain (login) password.
However, when I try the same thing from the command line using commands like the following
security find-generic-password -gs site_name
there is no such dialog for password input and the password is just given without any form of validation.
Is there any way to change this?
Best Answer
I bumped into this same issue, and it seems its all about removing the default access when creating the new password, this is described on help of the command:
At the bottom you will see:
So essentially you create the password with the
-T ""
setting: