Adding TouchID support to Terminal

#Adding TouchID support to Terminal

I use terminal a lot and I have the new Macbook Pro from 2017 with a touch bar. Currently most of the apps I use support TouchID for authentication which makes my life easier as I dont have to type my password. Unfortunately, Terminal app in OSX does not support Touch ID by default. I found a nice and quick way to enable this feature. Here is the code snippet.

$ sudo vi /etc/pam.d/sudo

add the following code on line 2

auth sufficient pam_tid.so

save and exit. Now everytime I use sudo I see a prompt on the screen to use my fingerprint.

Previous post
How I detect blurry images using OpenCV? #How I detect blurry images using OpenCV? I take a lot of picture and spend a good chunk of time discarding useless ones. I needed a better
Next post
Think Hard #Think Hard An excerpt from Book of Life Plato proposed that our lives go wrong in large part because we almost never give ourselves time to