Build standard Unix owner, group and other permissions and generate octal, symbolic and chmod command output.
This generator covers the standard read, write and execute bits only. It does not include setuid, setgid or sticky-bit permissions.
How to generate a permission command
- Select read, write and execute permissions separately for the owner, group and everyone else.
- Enter one file or directory path. The preview updates as you change the values.
- Review the octal mode and command, then copy it if it matches your intended change.
The generator previews a command; it does not run it or change permissions on your device or server. Reset restores 755 and file.txt.
How the digits work
Within each group, read contributes 4, write contributes 2 and execute contributes 1. Add the selected values to get one digit from 0 to 7. The three digits represent owner, group and others in that order. For example, 755 is rwxr-xr-x: the owner has all three permissions, while group and others have read and execute.
Mode 644 is rw-r--r--; 600 is rw-------. These are examples, not a recommendation for every file. Choose permissions based on who actually needs access. On directories, execute means search/traversal permission; it does not mean running the directory as a program.
Paths and shell quoting
The command preview targets GNU chmod in a POSIX-style shell such as Bash. It quotes the path as one literal argument, including spaces and apostrophes, and uses -- to end option processing. A path beginning with a dash is therefore treated as a path. Dollar signs, wildcards and shell operators remain literal characters.
Enter the actual path, without adding shell quotes yourself. A tilde such as ~/file.txt stays literal in the quoted argument; use the full path or a relative path instead. This preview is not PowerShell or Windows Command Prompt syntax. It does not add recursive behavior.
Limits
The displayed nine-character permission string covers ordinary access bits only. It does not show file type, ACLs or special bits. Existing special bits can behave differently for files and directories, so the preview does not claim to describe the complete resulting permissions. Check the target and its current permissions before running any command.
See the GNU chmod documentation and Bash quoting documentation for command behavior. Browse Developer Tools for related utilities.