Last active
July 31, 2024 14:01
-
-
Save breun/275e517a9e5e89e04da890bef2ca3a73 to your computer and use it in GitHub Desktop.
Enable Touch ID for use with sudo on macOS
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 Touch ID for use with sudo on macOS. | |
# macOS Sonoma introduced /etc/pam.d/sudo_local, which persists through OS updates, unlike methods that modify /etc/pam.d/sudo. | |
sed "s/^#auth/auth/" /etc/pam.d/sudo_local.template | sudo tee /etc/pam.d/sudo_local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good stuff! You could consider adding https://github.com/fabianishere/pam_reattach to the script, for all iTerm and tmux users out there :)