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.

Instead, we can

  • Copy the file /etc/pam.d/sudo_local.template to /etc/pam.d/sudo_local

  • Then remove the # in front of the auth like 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?