Add New Sudo User on Ubuntu Using Command Line

First start by creating the user from your root account (This command will prompt you for the password and other user related information): adduser username

Next type the following command and hit Enter:


Now look for the section where you see root ALL=(ALL:ALL) ALL. We want to duplicate this line for our new user we just created so the type the following just below that line and save your changes:

username ALL=(ALL:ALL) ALL

Now login as your new user:

ssh username@your_server_ip_address



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: