chown
Change file ownership to a specified user or user:group. Preview changes with dry-run option.
Instructions
Change file user ownership with dry-run support. Destructive: modifies filesystem ownership metadata. May require elevated privileges. Use --dry_run to preview. Returns JSON with operation result. Use to transfer file ownership between users. Not for group-only changes — use 'chgrp'. Not for permission changes — use 'chmod'. See also 'chgrp', 'chmod'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| no_follow | No | Do not follow symlinks where supported. | |
| owner | Yes | Owner spec such as UID, USER, UID:GID, or USER:GROUP. | |
| paths | Yes | Paths whose owner/group should change. |