How to create a new sudo user on Ubuntu Linux server

To create a new sudo user on an Ubuntu Linux server, you can follow these steps:

  1. Log in to your Ubuntu Linux server as the root user or as a user with sudo privileges.
  2. Run the following command to create a new user:
sudo adduser <username>

Replace <username> with the desired username for the new user.

  1. Follow the prompts to set the password and other details for the new user.
  2. Grant sudo privileges to the new user by running the following command:
sudo usermod -aG sudo <username>

Replace <username> with the username of the new user.

  1. Log out and log in as the new user to verify that you can use sudo privileges.

That’s it! You’ve successfully created a new sudo user on your Ubuntu Linux server.

Leave a Comment