Touch ID on terminal

If you have Touch ID available on your machine and are tired of typing in your password each time you use sudo, use the following guide to enable Touch ID on your terminal.

Edit /etc/pam.d/sudo

code /etc/pam.d/sudo

Add the following line on top

auth sufficient pam_tid.so

Additional steps for iTerm2

Go to Prefs -> Advanced -> Allow sessions to survive logging out and back in and set value to no

Discover more from Engineering @ Rho

Subscribe now to keep reading and get access to the full archive.

Continue reading