files/chown
Change a file's or directory's owner and group, with recursive option. Skips symlinks and requires root privileges for ownership changes.
Instructions
Changes a file's or directory's owner and/or group (chown). Never follows symbolic links: a path containing a symlink in any component is refused, and recursive changes skip symlinks and report them. Changing the owner requires privileged: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path | |
| owner | Yes | user, user:group, :group, or user: (the user's login group); names or numeric ids | |
| recursive | No | Also apply to everything below a directory (symlinks are skipped, never followed) | |
| privileged | No | Run as root - required to change ownership |