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?