To create a new user on Proxmox VE, you typically follow these steps:
Log in as Root: First, you need to log in to your Proxmox VE server as the root user via SSH or the web interface.
Access the Shell: If you're logged in via SSH, you're already in the shell. If you're using the web interface, navigate to the "Datacenter" view and click on "Shell" in the top menu.
Create the User: Use the useradd command to create a new user. For example, to create a user named john, you would type:
useradd -m john
The -m option creates the user's home directory.
Set a Password: Use the passwd command to set a password for the new user:
passwd john
You'll be prompted to enter and confirm the password.
Assign Permissions: Depending on what the user needs to do, you might want to add them to certain groups. For example, to give the user access to the Proxmox VE web interface, you might add them to the pveadmin group:
usermod -aG pveadmin john
Verify: You can verify that the user has been created and has the correct permissions by logging in as the new user or checking the user and group lists:
cat /etc/passwd
cat /etc/group
Example:
# Create a new user named 'john'
useradd -m john
# Set a password for 'john'
passwd john
# Add 'john' to the 'pveadmin' group to give access to the Proxmox VE web interface
usermod -aG pveadmin john
For managing users and permissions more efficiently, especially in a cloud environment, you might consider using a cloud identity and access management (IAM) service. Tencent Cloud, for example, offers a comprehensive IAM service that allows you to manage users, groups, roles, and permissions across your cloud resources.