-
-
Save hadanischal/a81a1bd67bacd31b392068b1f19214e3 to your computer and use it in GitHub Desktop.
MacOS's TouchID for sudo in iTerm2
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
| 1. $ sudo vim /etc/pam.d/sudo | |
| 2. add this line on top of the content | |
| auth sufficient pam_tid.so | |
| 3. | |
| :w! | |
| :q | |
| 4. works now for Terminal, but for iTerm 2, go to top menu | |
| iTerm2 > Preferences.. > Advanced > | |
| Turn "off" > Allow sessions to survive logging out and back in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment