Q:

add sudo user ubuntu

usermod -aG sudo username
10
# add a user and set a password
adduser USERNAME

# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
1
echo "username  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
0

New to Communities?

Join the community