Skip to content

Instantly share code, notes, and snippets.

@willwm
Last active November 11, 2022 01:11
Show Gist options
  • Save willwm/a7a0b618cfa6a8df777b332eab56e0f6 to your computer and use it in GitHub Desktop.
Save willwm/a7a0b618cfa6a8df777b332eab56e0f6 to your computer and use it in GitHub Desktop.
Use TouchID to Authenticate sudo

Source: https://it.digitaino.com/use-touchid-to-authenticate-sudo-on-macos/

  1. Run sudo micro /etc/pam.d/sudo
  2. Add auth sufficient pam_tid.so below auth sufficient pam_smartcard.so, so that the file looks like this:
# sudo: auth account password session
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment