This question already has an answer here:

I want to know how groups work in Linux. In windows users that belong to admin group can have access to everything. So I want to know how to create a user and add that user in Root group or whichever group has access to everything in Linux.

marked as duplicate by Anwar, edwinksl, Mark Kirby, terdon Aug 14 '16 at 12:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Open a terminal by pressing Ctrl+Alt+T.

In the terminal, type the following command, then press Enter:

sudo adduser USERNAME

This will create a new user (replace USERNAME with the new user's username). It will ask you to enter a password for the new user, as well as a bunch of other optional information (full name, phone number, etc). Now, add that user to the sudo group:

sudo adduser USERNAME sudo

(again, replace USERNAME with the new user's username). This will allow the new user to run any command as root by typing:


in the terminal, and then entering the new user's password.


Most likely you do not need to do that. If you type id you can see what groups you are in:

$ id
uid=1000(zanna) gid=1000(zanna) 

Oh look I am in a group called sudo... that means I am allowed to issue commands as the superuser... which commands am I allowed to use in that way?

$ sudo -l
User zanna may run the following commands on monster:
    (ALL : ALL) ALL

That's probably enough privileges :)

Here's a good question about managing users and groups in Ubuntu as pointed out by Anwar Shah. The Arch wiki also gives insight.

Not the answer you're looking for? Browse other questions tagged or ask your own question.