On the Ubuntu Operating Systems, the “SUDO” (Super User Do) command normally is used to granting Admin permissions to Normal and Root user. This Guide will show you, How to Create Sudo user on Ubuntu with Admin permissions, without having Changement in your server.

You have to follow step-by-step tutorial that is below as follows:

Steps to Create Sudo User

1. First of all, Log in into your server as Root User.

local$ ssh [email protected]_ip_address

2. After that, We will use adduser command to set up a new user.

# adduser username

Replace Username with your username that you want to create as the new user.

3. Now set and confirm the New User and its password, You have to use a strong password.

It will prompt as below matter:

Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

4. After that complete the further queries and finish the setup.

Changing the user information for username
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]

5. Now Add the New User in Sudo Group to access the Admin privileges.

Use the Following command to do it:

# usermod -aG sudo username

6. Once you did finish, Test the New User that it is in sudo group otherwise not.

• First of all, Switch to the New user you created

# su - username

• Now check that you can use Sudo command, Simple Add “Sudo” at beginning of the Command that you want to execute with superuser privileges.

# username$ sudo command

When you will use first-time sudo command it will prompt to enter the user password.

If you did everything, As I have mentioned and you entered your password correctly then you can use the new user. Hope, I small guide will help you to Create Sudo User on Ubuntu 16.04 and 18.04.


Please enter your comment!
Please enter your name here

12 + twelve =

This site uses Akismet to reduce spam. Learn how your comment data is processed.