Touch ID for sudo
How to configure sudo to use Touch ID on macs
Overview
Instead of having to type our password each time we use sudo we can instead use Touch ID on our mac keyboards.
While we can use the /etc/pam.d/sudo file for this, changes will not survive system updates, and if we accidentally mess something up, it's quite a pain to fix it!
Instead, we can create and update the file /etc/pam.d/sudo_local
# /etc/pam.d/sudo_local
𝗮𝘂𝘁𝗵 𝘀𝘂𝗳𝗳𝗶𝗰𝗶𝗲𝗻𝘁 𝗽𝗮𝗺_𝘁𝗶𝗱.𝘀𝗼Then save, and the next time you run sudo, you'll be prompted for Touch ID instead of your password.

Last updated
Was this helpful?