Adding sudo User in Ubuntu - Zacham17/my-tech-journal GitHub Wiki

This page provides steps on creating a user in Ubuntu and adding them to the sudo group

Creating a user

  • Type the command, adduser USERNAME, replacing "USERNAME" with a username for the user that you are adding.
  • You may not be prompted to set a password, you can do this by typing passwd USERNAME. You can then set a password

Adding a user to the sudo group

  • This is very simple and can be done using the command, usermod -aG sudo USERNAME
  • To apply these changes, you can log out and log back in, or use the command su - USERNAME
  • You can check if the change was applied by using the new user to run a command using sudo.