Skip to main content

Adding users to client VMs and adding to Sudo Group

1) Log in to VM as root (from proxmox shell or ssh as root)

2)

adduser <username>

Enter password twice and then leave the rest of the fields blank

3) Add the User to the Sudo group

usermod -aG sudo <username>

Usermod - modifies user account

-aG - adds user to the group

sudo - group name we are adding to

4) Verify by switching to the newly created user

su - <username>

 

Sources:

https://www.cloudpanel.io/tutorial/how-to-add-user-to-sudoers-in-debian/