Reset lockout in webmin and remove two factor authentication

To remove the two factor authentication for webmin, edit the file /etc/webmin/miniserv.users.
On this line:
Remove the word totp from the line that begins with your username.

The lockout on login can be removed by running the following on the server:

service webmin restart

Refresh the page after restarting the service.
After logging in, under Webmin>Webmin>Webmin configuration>Two factor authentication>Authentication provider: None


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.