User Tools

Site Tools


2fa_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2fa_linux [2023/08/03 11:23] admin2fa_linux [2024/10/29 22:58] (current) admin
Line 47: Line 47:
  
 ''nano /etc/webmin/miniserv.conf'' and add the line at the end of the file ''pam_conv=1'' ''nano /etc/webmin/miniserv.conf'' and add the line at the end of the file ''pam_conv=1''
 +
 +Then do:
 +
 +   nano /etc/pam.d/webmin
 +   auth required pam_google_authenticator.so
 +
 +Restart the Webmin Service with:
 +
 +   service webmin restart or systemctl restart webmin
  
 Shoud you have any login problems in Webmin, reset your password with: Shoud you have any login problems in Webmin, reset your password with:
Line 52: Line 61:
    cd /usr/share/webmin    cd /usr/share/webmin
    ./changepass.pl /etc/webmin/ username password    ./changepass.pl /etc/webmin/ username password
 +   systemctl restart webmin
  
 If you like to disable 2FA, just comment out ''auth required pam_google_authenticator.so nullok''  If you like to disable 2FA, just comment out ''auth required pam_google_authenticator.so nullok'' 
Line 81: Line 91:
    ChallengeResponseAuthentication yes    ChallengeResponseAuthentication yes
    PasswordAuthentication yes    PasswordAuthentication yes
-   AuthenticationMethods keyboard-interactive+   AuthenticationMethods keyboard-interactive (for older Debian versions) 
 +   KbdInteractiveAuthentication yes (for newer Dbian versions)
    UsePAM yes    UsePAM yes
  
2fa_linux.1691054617.txt.gz · Last modified: 2023/08/03 11:23 by admin