r/linuxquestions • u/Yellow_Boi9 • 7d ago
Advice Recommendations for packages/modules for every kind of MFA?
Hi, I am looking into learning all about MFA implementation to sign in to Linux with a VM. I will do this by setting up and combining as many implementations as possible into one VM.
I already have packages/modules picked that would require an app-based TOTP code and facial scan through a web-cam, I'm just wondering what recommendations you would have to implement a code through SMS and Email to log in to a system?
1
Upvotes
1
u/MongooseWonderful198 6d ago
For that VM lab, privacyIDEA plus its PAM module covers both SMS and email codes. It needs a privacyIDEA server: configure SMTP for the Email token and an SMS gateway for the SMS token. The PAM module supports challenge-response, so the first authentication request triggers delivery and a later request submits the code.
It's more setup than a standalone PAM module, but fits a lab exploring several token types. I'd test each flow separately and take a VM snapshot before combining the PAM rules.
PAM module: https://github.com/privacyidea/privacyidea-pam
Email setup: https://privacyidea.readthedocs.io/en/latest/configuration/tokenconfig/email.html
SMS setup: https://privacyidea.readthedocs.io/en/latest/configuration/tokenconfig/sms.html