ubuntu add user to group sudo code example
Example 1: ubuntu add user to group
sudo usermod -a -G group username
Example 2: 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