Unlock Admin Powers with a Tap: Enable Touch ID for Sudo on Mac
Say goodbye to typing your sudo password and hello to swift Touch ID authentication for all your admin tasks in Terminal.

Security Bite: Stop Typing Your Sudo Password, Use Touch ID Instead
Overview: This article discusses how to configure your Mac to use Touch ID for sudo commands in the Terminal instead of typing a password. This feature reduces the need for repeated password entry and enhances security and convenience.
Key Points:
- Benefits: Using Touch ID with sudo provides a quick, secure method of authentication without typing passwords.
- Security: Touch ID data is stored locally on the device in an encrypted form within the Secure Enclave, ensuring that it is not accessible to Apple or the operating system.
- Setup Steps:
- Copy Configuration File: Copy the default template configuration file provided by Apple to a new file called
sudo_local
using Terminal.sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
- Edit Configuration File: Open the newly created
sudo_local
file in a text editor (e.g., nano).sudo nano /etc/pam.d/sudo_local
- Uncomment Line: Uncomment the line containing
pam_tid.so
by removing the#
symbol. - Verify Setup: Run a sudo command in a new Terminal session to test if Touch ID is prompted for authentication.
- Copy Configuration File: Copy the default template configuration file provided by Apple to a new file called
- Reverting: If you want to revert back to using a password, comment out the
auth
line again.
Conclusion: The setup process is straightforward and can be completed in a few minutes. Enabling Touch ID for sudo not only simplifies your workflow but also enhances security by leveraging biometric authentication.
Latest News

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

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

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

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

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

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