ubuntu how to change a user from group code example
Example 1: ubuntu add user to group
sudo usermod -a -G group username
Example 2: group of user ubuntu
groups <username>
sudo usermod -a -G group username
groups <username>