TouchID for Sudo
Enable TouchID when using Sudo
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
Copy the file
/etc/pam.d/sudo_local.templateto/etc/pam.d/sudo_localThen remove the
#in front of theauthlike below
# /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?