how to change username as root

hbear

New Member
Feb 4, 2022
2
0
1
39
how to change username as root?I have changed the username "root" from etc/passwd and etc/shadow.I can login shell but I can't login web gui.
How can I login web ui?Is there any another file should be changed?
thanks!
 
Hey,

you don't rename the root user, in Unix systems a lot of software/services assume there is a user with this name and changing it will just break things. To get an idea of all the things you'd have to change in order to make it work, take a look at find /etc -type f -exec grep -l root {} +. Generally you should just create a new user and give it the permissions it needs, this should be rather straight forward using the web UI.
 
Last edited:
If you want to log in with a different username, you should add a new user with the chosen name. First create the user with the adduser command and then add a user with the same username through the Proxmox VE GUI (Datacenter > Permissions > Users).
 
Last edited:
  • Like
Reactions: Hannes Laimer