Last active
September 5, 2019 07:50
-
-
Save pich4ya/6c334ff290ba6ff6f4a0c40c85cb5d74 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