Typing sudo password again and again becomes very frustrating at times. But there is a solution to this madness. You can use fingerprint for this process. This post has been inspired by krdrag0n’s tweet.
For Linux
Debian/Ubuntu Based Distros
- Run
sudo pam-auth-update
- And use the space bar to enable Fingerprint authentication in the dialog
Arch Based Distros
- Install
fprintd
andimagemagick
Note: Some devices may require a different fork of libfprint.See Here - Enroll fingerprint with
fprint-enroll
- Append these lines to
/etc/pam.d/sudo
auth required pam_env.so
auth sufficient pam_fprintd.so
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth required pam_deny.so
For Mac
- Add
auth sufficient pam_tid.so
to/etc/pam.d/sudo