how to add a user to the sudo group code example
Example 1: add sudo user ubuntu
# add a user and set a password
adduser USERNAME
# add user to sudoers / sudo groupe with command below
usermod -aG sudo USERNAME
Example 2: show users in sudo group
grep -Po '^sudo.+:\K.*$' /etc/group