sudo-touchid icon indicating copy to clipboard operation
sudo-touchid copied to clipboard

Apple Watch?

Open MikeThomas1 opened this issue 8 years ago • 3 comments

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?

MikeThomas1 avatar Nov 22 '16 20:11 MikeThomas1

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).

kahoover avatar Dec 21 '16 18:12 kahoover

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 avatar Sep 21 '19 08:09 alessaba

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

alessaba avatar Sep 21 '19 09:09 alessaba