MacOS Tricks

Enable TouchID for sudo

Setting this up will let you use TouchID to authenticate while using sudo, or during any password authentication on terminal.

This only works for MacOS Sonoma (14) and above and persists throughout updates.

sed -e 's/^#auth/auth/' /etc/pam.d/sudo_local.template | sudo tee /etc/pam.d/sudo_local
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9