MacOS Catalina let us do some higher privilege actions on our Mac by authorising through a press on our Apple Watch button.
Would it be possible to use that feature to authorise a sudo
command in the Terminal?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityMacOS Catalina let us do some higher privilege actions on our Mac by authorising through a press on our Apple Watch button.
Would it be possible to use that feature to authorise a sudo
command in the Terminal?
There is a PAM module for this on GitHub:
https://github.com/biscuitehh/pam-watchid
(This is forked from a TouchID PAM module, btw.)
$SUDO_ASKPASS
environment variable to define a helper program (that you wrote) to do the validation. This program would then pass the password to tgetpass.c. See this SO question. Not sure how practical/difficult it would be though. – lx07 Nov 12 '19 at 15:58sudo
with touch ID on the CLI. – Tonin Nov 12 '19 at 17:51