Added two-factor authentication, i think last access, but not 100%. Anyway, 2fa is failing about Authen::OATH

That means you didn’t install latest Webmin devel version. Try that and then post the screenshot with the error.

Because there were problems with install. See log I uploaded.

webminins.zip (1.7 KB)

Just try the most simple way:

dnf install https://url-is-here -y

OK, I had downloaded the rpm previously and ran rpm to install. This time:

[tom@mail ~]$ sudo dnf install https://url-is-here-y
[sudo] password for tom:
Last metadata expiration check: 2:03:52 ago on Fri 15 Sep 2023 01:41:06 PM EDT.
webmin-latest.rpm                                                                                                                                   21 MB/s |  18 MB     00:00
Dependencies resolved.
===================================================================================================================================================================================
 Package                               Architecture                          Version                                             Repository                                   Size
===================================================================================================================================================================================
Upgrading:
 webmin                                noarch                                2.102.202309151540-1                                @commandline                                 18 M

Transaction Summary
===================================================================================================================================================================================
Upgrade  1 Package

Total size: 18 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                           1/1
  Running scriptlet: webmin-2.102.202309151540-1.noarch                                                                                                                        1/2
  Upgrading        : webmin-2.102.202309151540-1.noarch                                                                                                                        1/2
  Running scriptlet: webmin-2.102.202309151540-1.noarch                                                                                                                        1/2
  Running scriptlet: webmin-2.102-1.noarch                                                                                                                                     2/2
  Cleanup          : webmin-2.102-1.noarch                                                                                                                                     2/2
  Running scriptlet: webmin-2.102-1.noarch                                                                                                                                     2/2
  Verifying        : webmin-2.102.202309151540-1.noarch                                                                                                                        1/2
  Verifying        : webmin-2.102-1.noarch                                                                                                                                     2/2

Upgraded:
  webmin-2.102.202309151540-1.noarch

Complete!

I am rebooting, will try to login after.

Still

Warning!
Two-factor authentication failed : Missing Perl module Authen::OATH

[tom@mail ~]$ sudo locate OATH
[sudo] password for tom:
/usr/libexec/usermin/vendor_perl/Authen/OATH.pm
/usr/libexec/webmin/vendor_perl/Authen/OATH.pm

[tom@mail ~]$ sudo webmin -v
2.102.202309151540

Using Google Authenticator

Go to Webmin ⇾ Webmin Configuration: Two-Factor Authentication, e.g.:

… choose Google Authenticator and hit Save button.

After you hit the Save button, make a screenshot and drag and drop it here, to the editor area.

Herein lies the problem. I can’t log in. This is the whole problem. If I could log in, this ticket would not exist.

I asked this before. Can I disable 2fa via command line so i can log in?

You need to login as root using SSH and edit /etc/webmin/miniserv.users file, and replace:

root:x::::::::0:0:totp:HOQ7RXY76CGMOACH:

with

root:x:0

Note that root should correspond with your actual username. Also, don’t forget to restart Webmin after editing miniserv.users manually.

tom:x:0
kgca:x::::::::0:0:::

sudo reboot

FInally I am able to log in to Webmin.

Can I try to reenable 2fa now?

Did you enable it globally in Webmin ⇾ Webmin Configuration: Two-Factor Authentication page? If not do it and provide the screenshot. If you did, try disabling it first and then re-enabling it and share the screenshot with an error message.

I reenabled it:


So, everything is working fine?

WM home page:

Warning!
Two-factor authentication failed : Missing Perl module Authen::OATH when try login again.

Can I see the full screenshot containing this error?

I redownloaded the qr code for GA after I re-enabled 2FA.

I’m going to do the steps for/etc/webmin/miniserv.users and run recommended updates which I showed on Webmin home screen.