Software >> OS >> Unix >> Linux >> How to add new secondary group to a user

To change secondary group good to check what are the current groups that a user belong to

# groups user

modify the user properties by adding a secondary group

# usermod -a -G newsecondarygroup

verify

# groups user

ensure that newsecondarygroup is added to the existing secondary group(s)