linux_chmod
Convert Linux file permissions between octal and symbolic notation and generate the matching chmod command. Includes breakdown of owner/group/others rights, special bits, and security notes.
Instructions
Chmod Permission and Command Generator. Convert Linux file permissions between octal (e.g. 755, 4755) and symbolic (e.g. u+x, g-w, a=r) notation and assemble the matching chmod command string. For each permission it derives the owner/group/others read-write-execute breakdown, decodes special bits (setuid 4 / setgid 2 / sticky 1) on 4-digit octal, parses who/operation/perms for symbolic input, surfaces security notes (world-writable, 777, 600), and returns the literal chmod [-R] <perms> <path> command. It only BUILDS the command text — it never runs chmod, changes any mode, or touches the filesystem. Use it to look up or teach permission values and produce a copy-paste command; use linux_command_builder for find/grep/rsync/tar commands, linux_user_group_manager for useradd/usermod, and octal/base converters for raw number-base math. Runs locally via a Node bridge: read-only, non-destructive, idempotent, offline, contacts no external service, and is rate-limited (anonymous 30/min, 200/hr, 1000/day).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| permissions | No | One or more permission specs, each processed independently. Each is octal (3 or 4 digits, 0-7 per digit; a 4th leading digit is special bits) or symbolic ([ugoa][+-=][rwxXstugo]). Invalid entries return a per-result error. | |
| path | No | Target path interpolated verbatim into the command; not validated or accessed. | /path/to/file |
| recursive | No | When true, adds the -R flag (chmod -R) to recurse into directories. | |
| symbolic | No | Hint that input is symbolic notation. Format is auto-detected regardless; this only influences UI/output framing. | |
| explanation | No | When true, includes the per-class breakdown and security_notes in each result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on a 200 response. | |
| results | No | One entry per input permission, in order. |