4 Responses

  1. Niv
    Niv December 14, 2010 at 3:43 am | | Reply

    Googled “os x keychain terminal” and BAM – found your blog Maclovin. Thanks for this!

    Was just wondering though.., when retrieving the password through the graphical “Keychain Access” application I have to type in my user password. Yet when I retrieve it through the terminal I am not prompted for a password (I just get a “security wants to use your info…” accept prompt).

    Doesn’t that seem slightly silly to you? As far as I can see if someone physically takes my laptop and I don’t manage to lock it – he can extract all my keychain passwords through the security terminal app even if he doesn’t know my pw.

  2. Niv
    Niv December 14, 2010 at 3:55 am | | Reply

    Right.. doesn’t seem as bad as it looks. I locked the login keychain and tried the security terminal command again – this time was asked for my user password.

    Looks like PW is required only once, then the “security” tool can grab as many passwords as it pleases.

  3. VaughnSC
    VaughnSC May 13, 2011 at 12:25 am | | Reply

    Handy tip. Thanks a bunch!

  4. Schrotti
    Schrotti August 8, 2011 at 3:07 pm | | Reply

    To protect the keychain automatically, goto edit -> settings (for the chosen keychain), and set locking options.

Leave a Reply