how to give sudo privileges to a user in linux code example Example: add user to sudoers usermod -aG sudo username