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
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.