ubuntu add new user with sudo code example
Example 1: add user to sudoers
usermod -aG sudo username
Example 2: add user to sudoers
echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
Example 3: add sudo user ubuntu 18
sudo usermod -aG sudo [username]