To create a new sudo user on an Ubuntu Linux server, you can follow these steps:
- Log in to your Ubuntu Linux server as the root user or as a user with
sudoprivileges. - Run the following command to create a new user:
sudo adduser <username>
Replace <username> with the desired username for the new user.
- Follow the prompts to set the password and other details for the new user.
- 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.
- Log out and log in as the new user to verify that you can use
sudoprivileges.
That’s it! You’ve successfully created a new sudo user on your Ubuntu Linux server.