Created
October 3, 2023 03:11
-
-
Save nnsnodnb/1ef290d0c7598543b4e2a5d57ca9ef91 to your computer and use it in GitHub Desktop.
Enable Touch ID in terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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