rauchg / wifi-password

Get the password of the wifi you're on (bash)
4.44k stars 238 forks source link

Does OS X have any kind of "remember me" feature for accessing wi-fi passwords? #8

Open arielkirkwood opened 9 years ago

arielkirkwood commented 9 years ago

First, thanks for creating this. I think it's great, especially when combined with piping to pbcopy for easy sharing.

It's unfortunate that every attempt to retrieve a password, even the same one repeatedly, requires entry of both an admin username and a password. I know this isn't your fault, but I'm wondering what potential solutions there are.

A bit of research while composing this issue shows me that my wi-fi passwords are stored in the system keychain, which when going through Keychain Access to reveal the password requires me to type

Some further research reveals that if I set the access control on an individual password differently in Keychain Access, my admin password is no longer required to get the wifi password.

Sorry if this is rant-y, would love to learn more about potential workarounds to this UX thorn.

arielkirkwood commented 9 years ago

The Access Control pane does offer a place to add "authorized applications" for your passwords, so maybe there's room to automate adding wifi-password as an authorized application for all wifi passwords? I have zero idea of the feasibility of that.

Screenshot for clarity: screenshot 2015-02-19 13 01 28

Some googling lead me to these links:

Unfortunately, those links seem a little more focused on native iOS/OS X apps instead of shell scripts :(

robertoestivill commented 9 years ago

@arielkirkwood how do you access that panel? I couldn't find it. I have the script wrapped on a "automator made" osx application, maybe I can whitelisted in there since it's an app.

gingerbeardman commented 6 years ago

for anybody else, get that screen above:

Keychain Access > (find password) > Get Info > Access Control