unexpected behaviour: passwd -d root leads to PMG web login accepting ANY password for root@pam

d.b

New Member
Nov 24, 2026
1
0
0
Good evening,
while trying a cluster configuration (just two Proxmox Mail Gateway nodes) I learned that the PAM root account may not have two-factor-authentication enabled when using the clustering function.

My PMG working account is myusername@pmg account with passkey/totp and admin privileges, so I think I do not really need the root@pam account.

As this seems a reduced security for me (no 2-factor), I tried to disable the root@pam account in the web interface altogether. It seems though that is not possible, neither can the account be deleted.

So I reasoned I might disable password authentication on this user - by using the command passwd -d root in the shell.
Having done that, unexpectedly, a login into the PMG web platform seems to be possible with the credentials username root and ANY non-empty password. I used another browser so there should be no old session cookies left.
I quickly assigned another "secure" root password (random 64-character), of course - and login would only accept that one immediately.

Is there a recommended procedure to disable web login as root@pam on PMG?