Skip to content

Instantly share code, notes, and snippets.

@bastjan
Created June 15, 2022 18:39
Show Gist options
  • Save bastjan/e361b791de40ea2001c64eecfb6b133f to your computer and use it in GitHub Desktop.
Save bastjan/e361b791de40ea2001c64eecfb6b133f to your computer and use it in GitHub Desktop.
Add Touch ID to sudo

Add Touch ID to sudo

Edit /etc/pam.d/sudo add after header:

auth       sufficient     pam_tid.so

File should look like this in the end:

# sudo: auth account password session
auth       sufficient     pam_tid.so
auth       sufficient     pam_smartcard.so
auth       required       pam_opendirectory.so
account    required       pam_permit.so
password   required       pam_deny.so
session    required       pam_permit.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment