Create new Sudo User on Ubuntu

For this example i will create a user account called newuser – this will need to be replaced by whatever you want your account to be called.

Create new user account: sudo adduser newuser

Enter and confirm a password and complete the Information if necessary:


Add the account to the sudo group: sudo usermod -aG sudo newuser


To switch to this account to use it or test permissions: su – newuser

Enter your password

To test this, i tried to modify a file

cd /etc/network

nano interfaces

Try to make a change and it fails due to permissions


Repeat the process using sudo nano interfaces

This should work


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 )

Google photo

You are commenting using your Google 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