HomePostsMacOS Terminal Touch ID for sudo

MacOS Terminal Touch ID for sudo

In the macOS terminal you can enable Touch ID to use sudo without typing your password.

Touch ID for sudo

To enable sudo authentication with Touch ID on macOS, you need to add :

auth sufficient pam_tid.so

to the file /etc/pam.d/sudo

Step by step

First create a backup :

sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.bak

Then edit the file with your favorite editor :

sudo nano /etc/pam.d/sudo

Add the following line in the file :

auth sufficient pam_tid.so
Tags: