add user in sudoers ubuntu code example
Example 1: add user to sudoers
usermod -aG sudo username
Example 2: add sudo user ubuntu 18
sudo usermod -aG sudo [username]
usermod -aG sudo username
sudo usermod -aG sudo [username]