> Keep in mind that this file is somewhat protected by macOS so after each OS update you will need to add the line to the file. Other than that, it works perfectly!
TIL, I wondered why every time I did this it would reset after a while. Thanks!
TIL, I wondered why every time I did this it would reset after a while. Thanks!
if ! grep -q "pam_tid.so" /etc/pam.d/sudo ; then
echo "touch ID no longer enabled for sudo. Insert the following line as line 2 in /etc/pam.d/sudo:"
echo " auth sufficient pam_tid.so # enables touch id auth for sudo"
fiIs it idempotent? No, every reboot it adds the line again. Doesn't appear to matter though.
See my other reply on this thread.
https://github.com/shinzui/dotfiles.nix/blob/master/modules/...