chgrp

chgrp

This command will change group assignments which are associated with a file or directory.

Options
-c print changes
-f ignore information about files that can not be changed
-v verbose information on changes
-R changes occur recursively, all subdirectories are also changed

Example:

chgrp admin fred.info

This will change the group assigned to this file from fred to the admin which could be a more restricted group.


The Graphical User Interface provides a visual method of creating groups. The program lists the users and groups that are available with ID numbers.

To create a new group you will have to select a name and a GID (group identification number). You can manually select the number you want or allow the program to select the next available number.


Here is a list of groups and GIDs as well as the list of the users in each group.

When you choose group properties you can select what users you want to place in your group simply by placing a check mark next to their name.

Here you can see three members have been added to the TechSupport group.

If you had a large number of users and groups you may want to filter how you view your information. By choosing the filter "TechSupport" you will see the TechSupport group as well as the members of that group.