how to add a user to a linux group code example
Example 1: ubuntu add user to group
sudo usermod -a -G group username
Example 2: add user to group
usermod -a -G examplegroup exampleusername
sudo usermod -a -G group username
usermod -a -G examplegroup exampleusername