Skip to content

Instantly share code, notes, and snippets.

@niksmac
Last active August 27, 2022 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niksmac/9c8419d20221498541f99bc80c9d46d5 to your computer and use it in GitHub Desktop.
Save niksmac/9c8419d20221498541f99bc80c9d46d5 to your computer and use it in GitHub Desktop.
Use TouchID to Authenticate sudo on macOS

Use TouchID to Authenticate sudo on macOS

How to use TouchID to Authenticate sudo on macOS

Use your favorite text editor and open the file

/etc/pam.d/sudo

and add the following line

auth sufficient pam_tid.so

below the pam_smartcard.so line as shown below and then save the file.

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

Use TouchID to Authenticate sudo on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment