Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divspace/661349c8eb3997ad9461754baa8a3a4a to your computer and use it in GitHub Desktop.
Save divspace/661349c8eb3997ad9461754baa8a3a4a to your computer and use it in GitHub Desktop.
Enable Touch ID Fingerprint For `sudo` in iTerm and Terminal (macOS)

Open your sudo file:

sudo vi /etc/pam.d/sudo

Add the following after the first line:

auth       sufficient     pam_tid.so

In iTerm, go to the Advanced section in Preferences and set Allow sessions to survive logging out and back in to No.

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