chgrp
Change file group ownership with dry-run support. Preview changes before applying.
Instructions
Change file group ownership with dry-run support. Destructive: modifies filesystem group metadata. Use --dry_run to preview changes safely. Returns JSON with operation result. Use to reassign group ownership of files. Not for changing user ownership — use 'chown'. Not for permission changes — use 'chmod'. See also 'chown', 'chmod'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group name or numeric gid (omit when using --reference). | |
| paths | Yes | Paths whose group should change. | |
| dry_run | No | Report operations without changing files. | |
| no_follow | No | Do not follow symlinks where supported. | |
| reference | No | Copy group from reference file instead of a literal group name. |