this post was submitted on 21 Jan 2026
132 points (97.1% liked)
Linux
12289 readers
406 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can alter your PAM configuration to require both: https://unix.stackexchange.com/a/572841
On my system, by default it lets you use either one to authenticate any time a password is needed, but this can be changed to require successful authentication using BOTH methods if desired.
I wasn't sure if you were wanting to require both, or just allow either one to be used, but both scenarios are trivial to configure.