$worker
shell
v0.3.5Unix shell + filesystem worker — exec with allowlist/denylist/timeout/output caps and background jobs; fs::ls|stat|mkdir|rm|chmod|mv|grep|sed|read|write with host jail, denylist, size caps, and sandbox-target forwarding
- macOS: arm64 · x64
- Linux: arm64 · armv7 · x64
skill doc
skills/chmod.md
Changing a path's permissions
When to use
- Marking a freshly-written script executable after
shell::fs::write. - Locking down a generated config file (
"0600"). - Recursively normalising permissions across a generated tree.
Notes
modeis an octal string (e.g."0644","0755").uid/gidare optional integers; pass them to alsochown.updatedis the count of paths whose mode or owner the call mutated: 1 for a single-path call, more underrecursive: true.- Symlinks are not followed; chmod operates on the link itself. Recursive walks skip symlink entries so
chmod(2)/chown(2)cannot deref to a target outside the walk root. uid/gidare advisory: the host backend refuses to chown without sufficient privileges; the call returns the triggerErrrather than silently skipping.- Same jail and denylist rules as
shell::fs::ls.