useradd sudo ubuntu 18 code example Example: add sudo user ubuntu 18 sudo usermod -aG sudo [username]