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

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

# sudo: auth account password session
auth       sufficient
auth.      sufficient
auth       required
account    required
password   required
session    required

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

Share this post

    Related post

    1. NO IMAGE
    2. NO IMAGE


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