chgrp
The command that changes the group that owns a file.
In more detail
If you own a file you can move it into any group you belong to without root; other changes need sudo. Group ownership matters because the group permission set applies to every member of that group.
Related terms
- chown — The command that changes which user, and optionally which group, owns a file.
- id command — The command that prints the user and group identity a command is running as.
Taught in
- Permissions And Ownership — Bash Scripting & Command Line Automation