Login/Register

How to: Add or Create new Super User on Ubuntu (sudo)

created by BasicSysAdmin

Tags: Linux, Ubuntu, Ubuntu 14.04, Ubuntu 15.04, Ubuntu 16.04, Debian

Jul 09, 2016

For this to work, you will need to have access to an account with sudo privileges already. This has been tested on Ubuntu 14.04 but will most likely work on all Debian based distributions.

If you are creating a new account then you can use the following command

sudo adduser [username]

This will then create that user. You can then use the following command to add that user to the sudo group.
sudo adduser [username] sudo

You may need to logout/in for this to take effect.