Last active
December 27, 2023 05:49
-
-
Save fraune/0831edc01fa89f46ce43b8bbc3761ac7 to your computer and use it in GitHub Desktop.
Enable a Macbook's Touch ID to authorize the `sudo` command in MacOS 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
sudo grep -q -F 'auth sufficient pam_tid.so' /etc/pam.d/sudo || sudo sed -i '' '2i\ | |
auth sufficient pam_tid.so | |
' /etc/pam.d/sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone wants to get this running in bash, try changing the
read
prompt: