- First add the user, run:
sudo adduser <UserNameHere>
- Add the user to sudo group by typing the command in terminal for Ubuntu version 12.04 and above:
sudo adduser <UserNameHere> sudo
- In an older version of Ubuntu (version 12.04 and older), run:
sudo adduser <UserNameHere> admin
- Verify it:
id <UserNameHere>