# usermod -g testgroup user1
This command is used for changing a user’s primary group.
# usermod -G testgroup user1
This command is used for adding a secondary group to the user1.
In this blog you can find technical related stuff and also news and information.