[SOLVED] Bulk change 'root' user email address

lhall

Member
Dec 10, 2020
17
0
21
48
I have many proxmox HVs running and I need to change the 'root@pam' user email address on all of them. I've googled a fair bit on this to no avail, does anyone know if there's a pve* command which I can run (via ansible) to do this? Thanks in advance.
 
hi,

the email address for root@pam is in /etc/pve/user.cfg

the format is something like this: user:root@pam:1:0:::youremail@domain.com:::

you could replace this line with sed or similar, but before deploying the change test it on one machine to make sure user configuration doesn't break! (i suggest you take a backup of the user.cfg file beforehand to avoid issues)



even easier: pveum user modify root@pam --email yourmail@domain.com
 
Last edited:
  • Like
Reactions: ajhaji and hugolet