loading...
Cover image for How to use MacOS's Touch ID on Terminal

How to use MacOS's Touch ID on Terminal

equiman profile image Camilo Martinez Updated on ・1 min read

macos-helpful-tips (5 Part Series)

1) What’s the better way to use PC Keyboard on macOS? 2) iTerm2 + Oh My Zsh! + Powerlevel9K best terminal combination for Geeks! 3) Setup MacOS for Development 4) Enable Dark Mode in some MacOS apps 5) How to use MacOS's Touch ID on Terminal

I know... use a fingerprint scanner and never come back. No need to write passwords, pins or patterns. But on the terminal when we use the magic word sudo ask for your password... yuck!!!

Yucky

Don't worry. It can be solved easily. Edit this file /etc/pam.d/sudo with your favorite editor. Mine is the VS Code because can deal with admin permission. Run this command on a terminal.

code /etc/pam.d/sudo

Add the following line on top

auth sufficient pam_tid.so

Easy Peasy Japanesey

Extra

On default terminal works like a charm, but on iTerm2 need an extra configuration. Go to Prefs -> Advanced -> Allow sessions to survive logging out and back in and set value to no.

Easy Peasy Japanesey

Restart and enjoy it.


That's All Folks!
Happy Coding 🖖

Buy me a cofee

macos-helpful-tips (5 Part Series)

1) What’s the better way to use PC Keyboard on macOS? 2) iTerm2 + Oh My Zsh! + Powerlevel9K best terminal combination for Geeks! 3) Setup MacOS for Development 4) Enable Dark Mode in some MacOS apps 5) How to use MacOS's Touch ID on Terminal

Posted on by:

equiman profile

Camilo Martinez

@equiman

['Family Man', 'Engineer', 'Software Developer', 'Metalhead', 'English Student' ]

Discussion

markdown guide
 

This is great! Just what I was looking for!

 

Gracias amigo y ¡¡Viva Colombia!!

Saludos desde Chile 🇨🇱