( •̅ɞ•̅ ) nicolanore

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 :

1auth sufficient pam_tid.so

to the file /etc/pam.d/sudo

Step by step

First create a backup :

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

Then edit the file with your favorite editor :

1sudo nano /etc/pam.d/sudo

Add the following line in the file :

1auth sufficient pam_tid.so

#macos #development #terminal