5 ms·
For people complaining that this gets reset by macOS updates, I think this should work (I haven't tested this on macOS, but it works for me on Arch Linux): 1.
by pxeger1 4y ago
For people complaining that this gets reset by macOS updates, I think this should work (I haven't tested this on macOS, but it works for me on Arch Linux):
1. Copy /etc/pam.d/sudo to /etc/pam.d/customsudo and add "auth sufficient pam_tid.so" to that file instead.
2. Create the directory /etc/sudoers.d/ if it does not exist
3. Create the file /etc/sudoers.d/customtouchid with the following content:
Defaults pam_service=customsudo
You may need to set the right permissions on /etc/sudoers.d/customtouchid before sudo will accept it.
- nicwolff 4y agoI did this and set perms on /etc/sudoers.d/customtouchid to 0444, now `sudo` opens the dialog, but touching the Touch ID gets sudo: account validation failure, is your account locked? sudo: a password is required