WSL-Hello-sudo
sudo-touchid
WSL-Hello-sudo | sudo-touchid | |
---|---|---|
7 | 1 | |
1,155 | 1,546 | |
- | - | |
0.0 | 0.0 | |
12 months ago | over 2 years ago | |
Rust | C | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WSL-Hello-sudo
-
Quick Tip: Enable Touch ID for Sudo
Well, `sudo` is a *nix binary, so Linux and macOS are your most popular options here.
Fingerprint authentication for sudo was enabled by default on my Manjaro install after I enrolled a fingerprint so I guess popular Linux distributions configure it automatically. If yours doesn't, try the configuration methods on this page: https://wiki.archlinux.org/title/fprint or here: https://askubuntu.com/questions/1015416/use-fingerprint-auth... or consult your operating system's documentation.
The big difference is that you need "pam_fprintd.so" instead of "pam_tid". On Ubuntu (or derived, probably), running "sudo pam-auth-update" will allow you to configure fingerprint authentication without needing to manually edit system files.
Do note that if you use a more exotic window manager, any fancy visual sudo prompts may not know how to deal with such a system.
If you're on Windows and want WSL with Windows Hello, there's this tool: https://github.com/nullpo-head/WSL-Hello-sudo which is a PAM library that will call into Windows Hello from WSL. Windows Hello should in turn support your fingerprint reader or other biometric authentication system configured for your PC.
-
WSL Hello Sudo: Face Recognition of Windows Hello on Windows Subsystem for Linux
What kind of prompt is this? It looks like Windows Terminal running Bash, but are the icons PNGs (windows + home), or a specific type-face rendering emoji?
https://github.com/nullpo-head/WSL-Hello-sudo/blob/master/de...
-
Use Touch ID for Sudo on Mac
Similarly for WSL2 using Windows Hello:
https://github.com/nullpo-head/WSL-Hello-sudo
- WSL-Hello-sudo - sudo by face recognition of Windows Hello on WSL
sudo-touchid
-
Use Touch ID for Sudo on Mac
I just have a setuid root sudo binary (compiled from sudo-touchid: https://github.com/mattrajca/sudo-touchid) in my home folder ~/bin. This has worked a treat across OS updates, without hacking PAM stuff. It’s extremely convenient and has probably saved me cumulative hours in typing out my long password :)
What are some alternatives?
pam-watchid - PAM plugin module that allows the Apple Watch to be used for authentication
sekey - Use Touch ID / Secure Enclave for SSH Authentication!
pam_reattach - Reattach to the user's GUI session on macOS during authentication (for Touch ID support in tmux)
rdpwrap - RDP Wrapper Library
wsl-distrod - Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
pam-duress - A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password.
YubiKey-Guide - Guide to using YubiKey for GnuPG and SSH
judo - Simple orchestration & configuration management
upmerge - maintain local changes to /etc on macOS (and maybe other systems) across upgrades