How to create sudo user on Ubuntu 20.04

How to create sudo user on Ubuntu 20.04 step by step instructions

Create a sudo user using command line

  1. To be able to add/create a sudo user we first need to create a regular user. To do so we can use the adduser command. Visit our How to Add user on Ubuntu 20.04 tutorial for more information on how to create new users.

  2. Once the regular user is created you can add user to sudo group hence effectively change the user account from Regular to Administrator. The bellow example will add user lubos to sudo group:
    $ sudo usermod -aG sudo lubos
    
  3. (optional) Lastly, retrieve user and group information to confirm that the given user has been added to the sudo group:
    $ id lubos
    uid=1001(lubos) gid=1001(lubos) groups=1001(lubos),27(sudo)
  • 878 Users Found This Useful
Was this answer helpful?

Related Articles

Advantages of ZFS

ZFS as a rather new filesystem offers various advantages in comparison to regular filesystems...

Analysing log files in Windows and Linux

Everyone knows the scenario, you want to analyze an issue of your server or local computer but...

Can i use TUN/TAP ?

Yes our VPS are KVM or Vmware based and you have your own kernel so using TUN/TAP is no problem.

Changing the Windows Administrator password – The easy way

Today we are going to show you how to change your Windows Administrator password the easy...

Command ‘curl’ not found on Ubuntu 20.04

The following error message may appear on your terminal hinting the unavailability of the curl...