How to disable two-factor authentication using command line for webmin

Webmin
2014-03-26
2014-06-05
  • murray davis

    murray davis - 2014-03-26

    I enabled TFA for the root account and logged out without generating a QR code. I now can't log back into webmin as I am prompted for a un/pw/authcode. I still have SSH to the box. How do I temporarily disable TFA using the command line?

     
  • murray davis

    murray davis - 2014-03-26

    SOLVED!

    So, there in the file /etc/webmin/miniserv.conf, there is a line:

    twofactor_provider=totp

    And, in /etc/webmin/miniserv.users, there is this line.

    root:x:0:::::::0:0:totp:HBL7W4RTG8T6FG8W:

    I just deleted the totp so the line read:

    root:x:0:::::::0:0::HBL7W4RTG8T6FG8W:

    Saved the file and restarted webmin: service webmin restart.

    I could then log back in with un/pw and generated my QR code.

     
  • linNovWin

    linNovWin - 2014-06-05

    I took me a long time to see the difference between the two lines so I'm adding this to make it easier and save time for people like me.
    root:x:0:::::::0:0:totp:HBL7W4RTG8T6FG8W:
    becomes this:
    root:x:0:::::::0:0::HBL7W4RTG8T6FG8W:

     
    Last edit: linNovWin 2014-06-05

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks