by maxique · 4y ago · 0 comments
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/...