[SOLVED] 2FA for root disable in CLI

TFrenz

Active Member
May 13, 2020
101
8
38
60
Hello,
i have a new smartphone (old is broken) and now i can not login as root, while 2FA is installed.
at my new phone i must setup the 2FA new für the Proxmox Mailgateway.
How can i disable the 2FA at the CLI?

Thanks Thomas
 
Hello, i have ist found.
Only the file /etc/pmg/tfa.json delete.
than i can login only with my password.
 
Hi,
It looks like /etc/pgm no longer exist. (ProxMox 7.1)
I did the following

mv /etc/pve/priv/tfa.cfg /etc/pve/priv/tfa.out

to restore the TFA, just revert to tfa.cfg

mv /etc/pve/priv/tfa.out /etc/pve/priv/tfa.cfg

Make sure you have console or ssh access before you do this!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!