Skip to content

Instantly share code, notes, and snippets.

@nstankov-bg
Created July 7, 2022 09:21
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 nstankov-bg/b0b90b5c62037767d9d2179b6e2981ad to your computer and use it in GitHub Desktop.
Save nstankov-bg/b0b90b5c62037767d9d2179b6e2981ad to your computer and use it in GitHub Desktop.
Use Fingerprint Reader on a MacBook to Validate SUDO | 1 Liner

HOWTO Leverage the Fingerprint Reader on a MacBook to Validate SUDO

The following is derived from the article Use Touch ID for sudo on Mac: Credits to: https://gist.github.com/GLMeece/08a0b1da2d28437466a68e2e563089bc

Steps

  1. Input 1 liner in Terminal.
sudo sed -i '' '2 i \
auth       sufficient     pam_tid.so
' /etc/pam.d/sudo

Note 1: I suppose it goes without saying that you'll need to provide your SUDO (Administrator) password for this step. If you're logged into a user account that doesn't have Admin privileges, you'll need to do that first.

Note 2: there will be a warning at the bottom of the edit screen: [ /etc/pam.d/sudo is meant to be read-only ]

  1. There is no step 2! 😆
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment