Root problems

foglertech

New Member
Dec 22, 2022
6
0
1
Months back I disabled the root account on my cluster. Now I'd like to add another node to my cluster, but it requires root's password. After enabling root again, I am unable to log in via the web GUI with root@pam. All other logins work fine. I can SSH just fine with root@pam as well. Attempting to add any new nodes via CLI also fails due to an authentication error.

journalctl -xe shows a authentication failure; rhost=REDACTED user=root@pam msg=missing required 2nd keys

I created some new keys and added them to roots@pam authorized_keys, but I still get the error.

Anybody have any suggestions on what other things to check, or potential fixes? Thanks.
 
Aaaaaaaand I figured it out. At some point, I must've set PAM to use TFA (despite not actually setting TFA up). Changing the PAM domain's "Require TFA:" to NONE resolved the issue. Now to set it up TFA correctly...... Screenshots for reference.

1701979307153.png

1701979363391.png
 
It is not recommended to deactivate the root user. In some cases the user is also hardcoded in PVE.
 

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!