Skip to content

Instantly share code, notes, and snippets.

@hadanischal
Forked from pich4ya/TouchID_for_sudo.txt
Created September 5, 2019 07:50
Show Gist options
  • Select an option

  • Save hadanischal/a81a1bd67bacd31b392068b1f19214e3 to your computer and use it in GitHub Desktop.

Select an option

Save hadanischal/a81a1bd67bacd31b392068b1f19214e3 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