use your watch to authorize sudo:
<https://github.com/biscuitehh/pam-watchid>
works a treat, minimal command-line fu needed.
git clone https://github.com/biscuitehh/pam-watchid
cd pam-watchid
more README.md
use your watch to authorize sudo:
<https://github.com/biscuitehh/pam-watchid>
works a treat, minimal command-line fu needed.
git clone https://github.com/biscuitehh/pam-watchid
cd pam-watchid
more README.md
On 2020-11-20 11:30, Lewis wrote:
use your watch to authorize sudo:
<https://github.com/biscuitehh/pam-watchid>
works a treat, minimal command-line fu needed.
git clone https://github.com/biscuitehh/pam-watchid
cd pam-watchid
more README.md
Neat. I don't have an Apple watch, alas, and my SO thinks sudo is
martial arts practiced by people who lisp.
The premise is what? Your watch gets auth from your iPhone which is
auth'd by fingerprint or FaceID?
If you have an Apple Watch many authorizations from you mac can be
confirmed by tapping oyur watch's side button instead of typing in
your password. Things like unlocking System preferences, deleting apps
from the Application folder, etc.
This adds invoking sudo from the command line to that list.
(If you have a touchID Mac, there is a similar process to enable sudo on those, but it does not require downloading anything, simply editing the /etc/pam/sudo file, IIRC. I don't have a touchID mac, so I've not looked
into it.)
On 2020-11-20, Lewis <g.kreme@kreme.dont-email.me> wrote:
If you have an Apple Watch many authorizations from you mac can be
confirmed by tapping oyur watch's side button instead of typing in
your password. Things like unlocking System preferences, deleting apps
from the Application folder, etc.
This adds invoking sudo from the command line to that list.
I just installed it and added this line to /etc/pam.d/sudo:
auth sufficient pam_watchid.so "reason=execute a command as root"
I'm still seeing the password prompt, even in new shells.
Hmmm... Is a service/computer restart required?
(If you have a touchID Mac, there is a similar process to enable sudo on
those, but it does not require downloading anything, simply editing the
/etc/pam/sudo file, IIRC. I don't have a touchID mac, so I've not looked
into it.)
From what I've read, adding this line enables Touch ID for sudo
operations:
auth sufficient pam_tid.so
I haven't tried this yet on my MacBook Pro.
On 2020-11-20, Lewis <g.kreme@kreme.dont-email.me> wrote:
If you have an Apple Watch many authorizations from you mac can be
confirmed by tapping oyur watch's side button instead of typing in
your password. Things like unlocking System preferences, deleting apps
from the Application folder, etc.
This adds invoking sudo from the command line to that list.
I just installed it and added this line to /etc/pam.d/sudo:
auth sufficient pam_watchid.so "reason=execute a command as root"
I'm still seeing the password prompt, even in new shells.
Hmmm... Is a service/computer restart required?
(If you have a touchID Mac, there is a similar process to enable sudo on
those, but it does not require downloading anything, simply editing the
/etc/pam/sudo file, IIRC. I don't have a touchID mac, so I've not looked
into it.)
From what I've read, adding this line enables Touch ID for sudo
operations:
auth sufficient pam_tid.so
I haven't tried this yet on my MacBook Pro.
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 790 |
Nodes: | 20 (0 / 20) |
Uptime: | 40:14:47 |
Calls: | 12,115 |
Calls today: | 5 |
Files: | 5,294 |
D/L today: |
72 files (9,959K bytes) |
Messages: | 564,933 |