-
-
Save tomterragni/d586eeddae847cdebef10d781ff1a440 to your computer and use it in GitHub Desktop.
Mac Touch ID for sudo in terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is the PAM sudo config file: /etc/pam.d/sudo | |
| # sudo: auth account password session | |
| ############################################### | |
| # add the following line to enable Touch ID authentication in e.g. unix scripts which use sudo, | |
| # as described in https://dev.to/equiman/how-to-use-macos-s-touch-id-on-terminal-5fhg | |
| auth sufficient pam_tid.so | |
| ############################################### | |
| auth sufficient pam_smartcard.so | |
| auth required pam_opendirectory.so | |
| account required pam_permit.so | |
| password required pam_deny.so | |
| session required pam_permit.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment