Unix group
3 August 2025 (Updated 3 August 2025)
What is a group?
A group in Unix systems allows you to provide shared access control among users for things like file permissions, process privileges and system operations.
Example use case of a group: controlling file access
You can create a group and then provide permissions to that group so that only users of that group can do certain things.
For example:
- You have a
/var/wwwdirectory that you only want your senior developers to be able to edit, not other developers. - You create a group
webadminand add your senior devsJohnandBobto that group. - You
chownthe/var/wwwdirectory to:webadminandchmod g+rwto give read & write permissions to thewebadmingroup. - Now, only users in the
webadmingroup (JohnandBob) can edit the/var/wwwdirectory.
Tagged:
Unix groups