I am having a problem logging into webmin. I enabled two-factor authentication a while ago and didn't have a problem using it until I went to login yesterday and got the error "Two-factor authentication failed : Incorrect OTP code". I have two-factor auth enabled on my user, and root restricted to localhost (I tried a putty tunnel, but it tries using the server IP instead of localhost, so I can't login as root). Does anyone have a suggestion of how I can disable two-factor auth manually or find a way to login with root via localhost rather than the public IP so I can disable two-factor auth?
"Two-factor authentication allows Webmin users to enable use of an ADDITIONAL authentication device when logging in..."
i ahvent used it but it appears this is an ALTERNATE method. you should be able to log in from your web interface especially locally from a client system to the localip:10000
Found this here http://stackoverflow.com/questions/22676508/how-to-disable-two-factor-authentication-in-webmin and http://sourceforge.net/p/webadmin/discussion/600155/thread/512d81e9/
Go into this file /etc/webmin/miniserv.conf, delete/comment this line: twofactor_provider=totp
And, in /etc/webmin/miniserv.users, there is this line. root:x:0:::::::0:0:totp:your key:
I just deleted the totp so the line read: root:x:0:::::::0:0::your key:
Saved the file and restarted webmin: service webmin restart.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.