File PermissionsLesson 43Free preview
Bash Group (chgrp)
This lesson is part of Bash · All levels
Summary
The chgrp command changes the file owner group without touching the user owner. It's useful when multiple team members need to access the same file through a shared group. Make sure the user running the command is a member of the group or use sudo.
Key points
- Chgrp file groups name change file groups
- The current group can be seen by the group command
- The user must be a member of the group or use sudo
- R is applying the change recursively
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.