The keychain only allows applications that you authorize to access a given password, right? So for example, when I upgrade Transmit, it needs to ask for my permission to access the passwords again. Does that give it access to everything or just a specific password / set of passwords?
OSX password script for everyone to know
21–30 of 94 posts
Re: OSX password script for everyone to know
#22I ran this command and for at least the first 10 items, I was prompted by a GUI dialog to allow the export of the keychain item. (I have close to 2,000 items in my keychain, so it is a small sample.) I think that this is more of a lesson to: 1) Have reason able auto locking time outs setup via the Keychain and Screen Saver 2) when Keychain Access prompts you to access info that you should normally click "Allow" and n…
Re: OSX password script for everyone to know
#23Re: OSX password script for everyone to know
#24How is this command line method any different/better than opening Keychain Access, clicking on each entry and checking 'Show Password'?
Re: OSX password script for everyone to know
#25Earlier quoted context omitted.
Why would it need sudo? If that were the case, then every web browser and every IM client and everything else on your computer with a password would need sudo. You're telling your computer to save your passwords and give them back to you later. You shouldn't be surprised when it gives them back to you later.
So, generally each application needs to be authorized separately. I should have to type my password to allow this application to access my passwords. If I can just click "allow" with no password, then so can anyone else trivially with Terminal access. If I go into Keychain access, and ask to see a password, it prompts for my master password before showing it to me. This should too.
Actually you can configure KeyChain to do just that: just set the keychain to lock after 0 minutes of inactivity. But there is always the tradeoff between security and convenience. And when you give away physical access and a logged-in session away to a malicious user, offering protection will require a lot of inconvenience.
Re: OSX password script for everyone to know
#26The reason this is strange behaviour is that when you try to access private info from within keychain you have to enter your user password each time. Using this command you just need to click on the allow button. The keychain only allows applications that you authorize to access a given password, right? So for example, when I upgrade Transmit, it needs to ask for my permission to access the passwords again. Does that…
If you're curious go to Keychain Access, double click an item and look at the Access Control tab. You can even force password entry there if you want extra security on certain items.
Re: OSX password script for everyone to know
#27Hardly a security flaw. How do you expect Safari/Chrome autofill the same passwords? And after the password is auto-filled any JavaScript can access the input's value attribute. I use this in my .emacs so Emacs can grab passwords from Keychain, but the same approach would work in bash too: (defun find-keychain-password (host) () (condition-case nil (let ((passstr (second (split-string (first (process-lines "/usr/bin/…
Re: OSX password script for everyone to know
#28Re: OSX password script for everyone to know
#29You may want to setup autolocking: 1. Launch "Keychain Access". 2. Right click on "login" keychain. 3. Click "Change Settings for Keychain 'login'". 4. Check the "Lock after:" box. 5. Change the minutes of activity to whatever you want. You have the option of auto-locking after zero minutes of inactivity.
Re: OSX password script for everyone to know
#30Is 1Password more or less secure than Keychain? If my 1Password is unlocked can any application get passwords out of it?
1Password is more portable though - Keychain is only useful in MacOS X.