Chmod Permissions Calculator
Convert Linux POSIX permissions between octal (755, 0644) and symbolic (-rwxr-xr-x) modes.
Interactive POSIX Permission Matrix
Owner: read/write/execute • Group: read/execute • Others: read/execute
Owner (User — u)
7Group (g)
5Others (Public — o)
5chmod 755 deploy.shchmod u=rwx,g=rx,o=rx deploy.shCommon Linux &SSH Permission Presets
What Does the Chmod Permissions Calculator Do?
The Chmod Permissions Calculator translates POSIX file and directory access bits across Owner (user), Group, and Others between three- or four-digit octal notation (such as 755, 0600, or 1777) and ten-character symbolic ls -l strings (such as -rwxr-xr-x or drwxrwxrwt).
Beyond standard read (4), write (2), and execute (1) bits, it models special POSIX flags: setuid (4000), setgid (2000), and the sticky bit (1000), updating s/S and t/T indicators accurately.
Built-in security diagnostics warn immediately when world-writable modes (such as 777 or 666 without sticky protection) or elevated setuid bits are selected.
How to Use This Tool
- Check or uncheck Read, Write, and Execute boxes in the Owner, Group, and Others columns—or type an octal (e.g., 640) or symbolic string directly.
- Optionally toggle Special Flags (Setuid, Setgid, Sticky Bit) or Directory (-R recursive) mode and customize the target filename.
- Copy either the octal command (chmod 755 deploy.sh) or symbolic command (chmod u=rwx,g=rx,o=rx deploy.sh).
Common Engineering Use Cases
- Configuring SSH key and directory permissions (~/.ssh at 700 and id_ed25519 at 600) so OpenSSH does not reject authentication.
- Setting deployment script, Dockerfile COPY --chmod, or Nginx/Apache web root permissions safely.
- Decoding unfamiliar symbolic permission strings like drwxr-sr-x or drwxrwxrwt from production server audits.
Practical Developer Examples
Locking Down an OpenSSH Private Key (600)
OpenSSH refuses private keys readable by group or others; 600 restricts access strictly to the file owner.
Octal: 0600, Target: ~/.ssh/id_ed25519
Symbolic: -rw------- Command: chmod 600 ~/.ssh/id_ed25519
Common Mistakes & Pitfalls to Avoid
- Running chmod -R 777 on web directories to 'fix' permission errors, which grants every local process write and execute privileges.
- Applying 644 to a directory without the execute (x) bit—directories require execute permission for users to traverse (cd) into them.
Frequently Asked Questions
Why do directories need the execute (x) permission?
On POSIX filesystems, read (r) on a directory only lets you list filenames, whereas execute (x) is the 'search/traverse' bit required to enter the directory or access files and metadata inside it.