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:

screen-shot-2016-09-29-at-16-52-03

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

screen-shot-2016-09-29-at-16-56-36

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

screen-shot-2016-09-29-at-17-03-48

Repeat the process using sudo nano interfaces

This should work

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s