sudo usermod -aG <groups> <username>
groups
# this will display what groups the active user is in
groups
sudo groupadd $GROUP
sudo usermod -aG $GROUP $USER
groups [user name]
# [user name] : (optionnal) the user to list the group of
# default is the one executing the command.
groups $username
groups userName-Here
User: the owner of the file (person who created the file).
Group:the group can contain multiple users. Therefore, all users in that group will have the same permissions. It makes things easier than assign permission for every user you want.