Text & developer tools
Chmod Generator
Build Unix permissions with checkboxes or decode an octal mode into readable permissions and shell commands.
How to use it
Read = 4, write = 2, execute = 1. Add the values for owner, group, and others. For example, 755 gives the owner rwx and everyone else r-x. The leading optional digit holds setuid, setgid, and sticky bits.
The generated commands quote the path literally. Tilde and environment variables in a quoted path are not expanded. A relative path beginning with a hyphen is prefixed with ./ so it is treated as a filename.
Numeric chmod can preserve existing setuid or setgid bits on GNU directories. The explicit symbolic alternative sets each selected permission and explicitly sets or clears special bits. Actual results can also depend on ownership, ACLs, filesystem, and OS rules.
Recursive mode affects the entire target tree and uses the same selected permissions for files and directories. Review the command before using it. This generator never runs commands.
No account needed. Calculations and files stay in your browser.
Reference: GNU chmod manual.