debian add user to sudoers code example
Example 1: add sudo user ubuntu
# add a user and set a password
adduser USERNAME
# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
Example 2: add user to sudoers debian
usermod -aG sudo username
Example 3: grant superuser permission to sudo user ubuntu
adduser sudo_user_name
//grant privileges
visudo
under line
root ALL=(ALL:ALL) ALL
add this line
sudo_user_name ALL=(ALL:ALL) ALL
sudo apt-get update