Skip to content

Instantly share code, notes, and snippets.

@nnsnodnb
Created October 3, 2023 03:11
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 nnsnodnb/1ef290d0c7598543b4e2a5d57ca9ef91 to your computer and use it in GitHub Desktop.
Save nnsnodnb/1ef290d0c7598543b4e2a5d57ca9ef91 to your computer and use it in GitHub Desktop.
Enable Touch ID in terminal
#!/usr/bin/env bash -e
if [[ $(whoami) != "root" ]]; then
echo "Must be run as root user."
exit 1
fi
chmod +w /etc/pam.d/sudo
# Insert following text in line 2
# auth sufficient pam_tid.so
chmod -w /etc/pam.d/sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment