Created
July 14, 2022 16:50
-
-
Save git-commit/a3e518e3af7a94432ad6f6fef464f08b to your computer and use it in GitHub Desktop.
ZSH script to use touch id for sudo
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
# Enable sudo via touch ID | |
grep -qxF "auth sufficient pam_tid.so" /etc/pam.d/sudo || sudo sed -i '' '1 a\ | |
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