ubuntu add user to a group code example
Example 1: ubuntu add user to group
sudo usermod -a -G group username
Example 2: linux add user to group
# add user to additional group
usermod -G groupname username
sudo usermod -a -G group username
# add user to additional group
usermod -G groupname username