TouchID for sudo AuthN on MacOS
The file we have to edit is /etc/pam.d/sudo
.
We have to add
auth sufficient pam_tid.so
below the pam_smartcard.so
line
auth sufficient pam_smartcard.so
auth sufficient pam_tid.so
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
Credits to digitaino