Skip to content

Instantly share code, notes, and snippets.

@breun
Last active July 31, 2024 14:01
Show Gist options
  • Save breun/275e517a9e5e89e04da890bef2ca3a73 to your computer and use it in GitHub Desktop.
Save breun/275e517a9e5e89e04da890bef2ca3a73 to your computer and use it in GitHub Desktop.
Enable Touch ID for use with sudo on macOS
# 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
@Remz-Jay
Copy link

Good stuff! You could consider adding https://github.com/fabianishere/pam_reattach to the script, for all iTerm and tmux users out there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment