How To Create a Sudo User on Ubuntu 20.04 LTS

https://‮al.www‬utturi.com
How To Create a Sudo User on Ubuntu 20.04 LTS

To create a sudo user on Ubuntu 20.04 LTS, you can follow these steps:

  1. Open a terminal and log in to the system as the root user.

  2. Run the adduser command to create a new user account. Replace username with the desired username:

adduser username
  1. Follow the prompts to set the password and other user information for the new account.

  2. Run the usermod command to add the new user to the sudo group:

usermod -aG sudo username
  1. Log out of the root account and log in to the system using the new sudo user account.

  2. To test the sudo privileges of the new user, run a command that requires root privileges, such as apt-get update. You will be prompted to enter the password for the new user account:

sudo apt-get update

If the password is accepted and the command executes successfully, the new user has been granted sudo privileges.

Created Time:2017-10-28 21:38:50  Author:lautturi