How to Enable Touch ID Authentication for sudo Commands on macOS

Mac users can configure Touch ID to replace password prompts when running sudo commands in the Terminal. On macOS 14 Sonoma and later, this involves copying a built-in template file at /etc/pam.d/sudo_local.template and uncommenting a single line to activate the pam_tid.so module. Users on macOS 13 Ventura or earlier must manually add the same line to the /etc/pam.d/sudo file, though this change gets overwritten with each system update. A third-party command-line tool called mole, installable via Homebrew, can automate the configuration process on either macOS version. Once set up, a Touch ID fingerprint prompt replaces the password dialog whenever sudo is invoked in a new Terminal session.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in