[SOLVED] 2FA for root disable in CLI

TFrenz

Active Member
May 13, 2020
102
9
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!