mattrajca / sudo-touchid

A fork of `sudo` with Touch ID support.
1.54k stars 47 forks source link

Apple Watch? #6

Open MikeThomas1 opened 7 years ago

MikeThomas1 commented 7 years ago

The Apple Watch can be used to unlock the mac. Can this tool be updated to include the ability to grant sudo with the Apple Watch?

kahoover commented 7 years ago

That sounds very unwise. Any rogue process could gain privileges if the machine were simply in unlocked and in use by its owner (if that owner had admin privs).

alessaba commented 5 years ago

The pkg installer does it and you are required to double press the side button. I don't think there is a risk. You have to purposefully double tap, it's not automatic

Edit: looks like this is a new feature in Catalina

alessaba commented 5 years ago

It's technically possible to do this with a function. Just put it inside .zshrc and you're set https://gist.github.com/alessaba/58cad7e8eb9650a5bcf5d5c004e171c8

There is one main problem: every process executed by awsudo will be shown as. "osascript", and that's not really safe. if this problem gets solved I may also rename awsudo to just sudo, and there would be no problem I think