Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Last active September 5, 2019 07:50
Show Gist options
  • Save pich4ya/6c334ff290ba6ff6f4a0c40c85cb5d74 to your computer and use it in GitHub Desktop.
Save pich4ya/6c334ff290ba6ff6f4a0c40c85cb5d74 to your computer and use it in GitHub Desktop.
MacOS's TouchID for sudo in iTerm2
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