Tutorial To Create A New Sudo-Enabled User On Ubuntu 20.04 LTS
In this post, we will show you the method to add a new sudo user to Ubuntu 20.04 LTS. It is also applicable in the earlier version of Ubuntu.
Create A New Sudo-Enabled User On Ubuntu 20.04
Let’s start by creating a new user first. Use the adduser command to add a new user to your system:
sudo adduser user-name
You will be prompted to create and verify a password for the user and also you need to provide some information about the new user which you are going to create with the above command.
Now, we need to add new user to Sudo group or we need to provide the privilege the same as sudo.
Run the following command to add the user to the sudo group:
sudo usermod -aG sudo user-name
Now you are ready to go. You can switch to the new user with the following command and start executing the command with a new sudo user.
su - user-name