Security Upgrade: Simplify Your Life with Touch ID for Sudo on Mac

Stop Typing Your Sudo Password, Use Touch ID Instead
One of the greatest benefits of Touch ID on Mac is the convenience it provides for various tasks, such as making purchases, signing into apps, and unlocking the device. Now, you can also use Touch ID to authenticate as an administrator in Terminal for all sudo commands with just one tap.
How to Enable Touch ID for Sudo
- Copy and Create New Configuration File
- Copy the default template configuration file provided by Apple and create a new one called
sudo_local
:
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
- Copy the default template configuration file provided by Apple and create a new one called
- Edit the
sudo_local
File- Open the newly created
sudo_local
file with your preferred text editor (e.g., Nano):
sudo nano /etc/pam.d/sudo_local
- Open the newly created
- Uncomment the Auth Line
- Uncomment the line containing
pam_tid.so
by removing the#
. Allow any system prompts that may appear.
- Uncomment the line containing
- Verify the Setup
- Open a new Terminal session and run a sudo command to test the setup. You should now get a prompt to use Touch ID for authentication instead of typing your password.
Security Note
Apple stores Touch ID data locally with AES-256 encryption in the Secure Enclave, ensuring that it is never sent to Apple servers or backed up to iCloud. The Secure Enclave only returns a 'yes' or 'no' if the authentication is successful.
Latest News

Android 16 Beta 4 Introduces Subtle But Noticeable Changes to Status Bar Clock Design
21 hours ago

Revolutionizing Gaming on iOS: AltStore Classic Brings Full-Speed Switch Emulation to iPhones and iPads in the EU
21 hours ago

Indie Spotlight: ‘Ping Pong Club’ Serves Up Realistic Table Tennis on Apple Vision Pro
21 hours ago

iPhone 17 Pro Camera Bar Leaks in Vibrant Case Colors
21 hours ago

Why Apple's iMessage Still Struggles with AVIF Image Files
21 hours ago

Simplifying macOS Updates for IT and End Users in 2025
21 hours ago