Looking for current product documentation?
Important operational guides are being maintained in the new documentation library.
Browse Docs

How to Create a New sudo User

Who this is for:
Linux VPS customers who want safer day-to-day server access.

Overview:
Instead of using root for everything, it is safer to create a normal user with sudo privileges.

Steps on AlmaLinux / CentOS / Rocky / Ubuntu / Debian:

  1. Log in as root.

  2. Create a new user:

 
adduser yourusername
 

or on some systems:

 
useradd -m yourusername
passwd yourusername
 
  1. Set a password for the user.

  2. Add the user to the sudo or wheel group.

For Ubuntu/Debian:

 
usermod -aG sudo yourusername
 

For AlmaLinux/CentOS/Rocky:

 
usermod -aG wheel yourusername
 

How to verify it worked:
Log in as the new user and run:

 
sudo whoami
 

It should return root.

When to contact support:
Contact support if sudo does not work or you accidentally remove your own access.

?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How to Access Your New SVR4U VPS

Who this is for:Customers who have just purchased a VPS. Overview:After your VPS is provisioned,...

First SSH Login to Your Linux VPS

Who this is for:Linux VPS customers. Overview:SSH is the standard way to securely connect to a...

How to Use RDP on a Windows VPS

Who this is for:Windows VPS customers. Overview:Remote Desktop Protocol, or RDP, allows you to...

How to Change the Root Password

Who this is for:Linux VPS customers. Overview:Changing the root password is one of the first...

How to Reboot or Reinstall Your VPS

Who this is for:VPS customers who need to restart or rebuild their server. Overview:Rebooting...