TIL: Touch ID for sudo on macOS

If you use the terminal on macOS, you’ve typed your password for sudo thousands of times. There’s a better way. Touch ID works for sudo, and Apple even ships a template config for it. Most people just don’t know it’s there. The Setup macOS includes a PAM (Pluggable Authentication Module) template at /etc/pam.d/sudo_local.template with the Touch ID line already written but commented out. All you need to do is copy it and uncomment: ...

April 10, 2026 · Aditya Konarde