Create admin user in ubuntu linux

1. Login as super user:

sudo su

2. Run the following command:

adduser username

Don’t forget to replace username with the name of user that you want to create.

3. Add the user to the sudo group:

usermod -aG sudo username

4. Switch to the new user:

su username

5. Check that new user has admin rights:

sudo ls -la /root

Share your thoughts