mattrajca / sudo-touchid

A fork of `sudo` with Touch ID support.
1.54k stars 47 forks source link

Only requires Touch ID once #7

Closed evanmhm closed 7 years ago

evanmhm commented 7 years ago

I am on a MBP 2016 on 10.12.1 and using j-mcnally's method of enabling root user and adding a fingerprint, I was able to get it to work, but only once. Once it authenticated with my finger print, sudo no longer required authentication in other sessions of terminal, after relaunching terminal, or after logging in or out. After rebooting, the entire thing stops working and just asks for password inline.

evanmhm commented 7 years ago

I deleted the custom sudo from usr/local/bin, rebuilt the project, and now ./sudo -s in the build directory doesn't require a password of any type.

mattrajca commented 7 years ago

I believe sudo remembers your password for a short grace period which is why it may appear it doesn't require a password at times.

mattrajca commented 7 years ago

If the whole thing stops working after rebooting, it's probably because your PATH is not being persisted across reboots and the system's build of sudo gets used again.