How to authenticate sudo with TouchID

You are a MacBook user who frequently uses terminal, sudo and wants to authenticate with TouchID?

In this case edit the file /etc/pam.d/sudo:

sudo vi /etc/pam.d/sudo

add the line:

auth sufficient pam_tid.so

Now the content of /etc/pam.d/sudo looks like:

# sudo: auth account password session
auth       sufficient     pam_smartcard.so
auth.      sufficient     pam_tid.so
auth       required       pam_opendirectory.so
account    required       pam_permit.so
password   required       pam_deny.so
session    required       pam_permit.so

That’s it. Now use your fingerprint to authenticate yourself.

Share this post

    Related post

    1. NO IMAGE
    2. NO IMAGE

      2013.12.27

      Using chmod
    3. NO IMAGE
    4. NO IMAGE
    5. NO IMAGE
    6. NO IMAGE