755
Chmod CalculatorPOSIX

Linux Permissions & Chmod Calculator

POSIX Standard

Visual Unix file permissions calculator with numeric (755, 644) and symbolic (rwxr-xr-x) modes. Real-time two-way matrix sync, SetUID/SetGID/Sticky bits, and instant chmod command generator.

⚡ Quick Presets & Real-World ScenariosClick any capsule to instantly load
e.g. 755 or 0755

3 or 4 digits: [Special][Owner][Group][Others]

e.g. rwxr-xr-x

9 or 10 characters (optional file prefix - or d)

Auto-quoted for shell safetyStandard POSIX Safe

Interactive Permission Matrix

u

Owner (User)

File creator or owner
7
Quick Values
g

Group

Users in assigned group
5
Quick Values
o

Others (World)

Everyone else on system
5
Quick Values

Permission Representations

Standard Octal Mode:Owner / Group / Others
755
Symbolic Format (ls -l):10-Character POSIX String
-rwxr-xr-x
Binary Bits
111 101 101
Symbolic Syntax Parameter
u=rwx,g=rx,o=rx
Human-Readable Permission Breakdown:
  • Owner: Can read, modify (write), and execute programs / access folders.
  • Group: Can read, cannot write, and execute.
  • Others: Can read, cannot write, and execute.

Chmod Command Generator

bash / zsh
Numeric Chmod Command
$ chmod 755 script.sh
Symbolic Syntax Chmod Command
$ chmod u=rwx,g=rx,o=rx script.sh
Ownership Tip: chown www-data:www-data script.sh

Linux Permissions Reference & Quick Lookup Table

Click any row below to instantly load that permission setup into the calculator.

NumericSymbolicPermission NameTypical Unix Use CaseAction
755rwxr-xr-xStandard ExecutableWeb root folders, CGI scripts, binaries, public dirsApply
644rw-r--r--Standard Static FileWeb pages, CSS, JS, images, general documentationApply
600rw-------Private Secret FileSSH private keys (~/.ssh/id_rsa), .env configs, passwordsApply
700rwx------Private User Directory~/.ssh folder, root scripts, private backup directoriesApply
400r--------Read-Only KeyAWS EC2 .pem private keys, locked TLS certificatesApply
664rw-rw-r--Group Writable FileCollaborative project files, shared group logsApply
775rwxrwxr-xGroup Writable FolderShared team build directories, CMS uploads foldersApply
660rw-rw----Owner & Group SecretDatabase socket files, internal team credentialsApply
777rwxrwxrwxFull World AccessNever recommend for production. Quick local debugging onlyApply
1777rwxrwxrwtSticky Temp DirectoryUnix /tmp and /var/tmp shared directoriesApply
4755rwsr-xr-xSetUID Root ExecutableSystem tools needing temporary root rights (su, passwd)Apply
2755rwxr-sr-xSetGID DirectoryShared directory where new files inherit parent groupApply

Zero-Knowledge Local Execution

All data processing, parsing, and compilation execute strictly inside your local browser memory. Zero external server uploads.

Instant Client-Side Engine

Instant real-time reactive computation delivers immediate feedback on every keystroke with zero network latency.

Production Standards & Compliance

Strictly validates syntax, edge cases, and formatting rules for dependable production output.

Technical Reference & Architecture Guide

Chmod Permissions Calculator & Command Generator — Reference Guide

Visual Linux/Unix file permissions calculator. Convert octal modes, symbolic notations (rwxr-xr-x), and flags into chmod commands.

Chmod Permissions Calculator & Command Generator — Reference Guide — Client-Side In-Memory Architecture & Data Flow
Chmod Permissions Calculator & Command Generator — Reference Guide — Client-Side In-Memory Architecture & Data Flow
POSIX File Permissions

Linux Numeric & Symbolic Permissions Quick Reference Table

Standard Linux / Unix chmod permission octal values, symbolic representations, and recommended security use cases for files and directories.

Linux Numeric & Symbolic Permissions Quick Reference Table
OctalSymbolicPermission NameAccess Rights (User / Group / Others)Standard Use Case
777rwxrwxrwxFull Public AccessRead, Write & Execute for AllTemporary shared folders (/tmp), development scratchpads (insecure in production)
755rwxr-xr-xStandard Executable / DirOwner: Read/Write/Exec; Group & Others: Read/ExecWeb root public directories (/var/www/html), shell scripts, binary executables
750rwxr-x---Restricted Group AccessOwner: Read/Write/Exec; Group: Read/Exec; Others: NoneSystem service directories, admin scripts shared with operations group
700rwx------Private User DirectoryOwner: Read/Write/Exec; Group & Others: NoneUser home directory (~/), private SSH key directory (~/.ssh)
666rw-rw-rw-Public Read / WriteRead & Write for All, No ExecuteInter-process communication pipes, generic shared cache data files
644rw-r--r--Standard Public FileOwner: Read/Write; Group & Others: Read OnlyHTML, CSS, images, standard web files, public system configuration files
640rw-r-----Protected Config FileOwner: Read/Write; Group: Read Only; Others: NoneDatabase connection configs (wp-config.php, .env) with web server group
600rw-------Private Confidential FileOwner: Read/Write; Group & Others: NoneSSH private keys (~/.ssh/id_rsa), SSL/TLS private keys, master .env files
1777rwxrwxrwtSticky Bit DirectoryAll: Read/Write/Exec; Only owner can deleteSystem temporary directory (/tmp, /var/tmp) preventing deletion by other users
Aligned with POSIX.1-2017 & standard Linux file permission hierarchy.

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
User (Owner) PermissionsBitmask (Read: 4, Write: 2, Execute: 1)Access privileges for the file or directory owner.7 (rwx)
Group PermissionsBitmask (Read: 4, Write: 2, Execute: 1)Access privileges for members of the file's assigned group.5 (r-x)
Others PermissionsBitmask (Read: 4, Write: 2, Execute: 1)Access privileges granted to all other system users.5 (r-x)
Special BitsBitmask (SUID: 4, SGID: 2, Sticky: 1)Advanced Unix execution flags (SetUID, SetGID, and Sticky Bit).0 (none)

Pro Tips & Best Practices

Use 755

Use 755 (drwxr-xr-x) for directories so the web server process can traverse and list folders securely without giving write rights to others.

Secure Web Content File Permissions

Use 644 (-rw-r--r--) for PHP/HTML/CSS files. Sensitive config files containing database passwords should be restricted to 600 or 400.

Apply chmod 1777 on shared

Apply chmod 1777 on shared folders like /tmp so all users can write files but only owners can delete their own files.

Common Gotchas & Troubleshooting

⚠️Directory Permission Denied error despite read permissions

Directories require Execute (x) permission to be entered and traversed. Read permission alone only allows listing filenames without reading metadata.

⚠️SetUID flag ignored on shell scripts

Modern Linux kernels disable the SUID/SGID bit on interpreted scripts (e.g., #!/bin/bash or python) for security. Use sudoers or compiled wrappers instead.

Frequently Asked Questions

How do I calculate Linux file permissions with this chmod calculator?▼

To calculate Linux file permissions, select the desired Read (4), Write (2), and Execute (1) checkboxes for Owner, Group, and Others. The calculator instantly generates the 3-digit octal value (e.g. 755 for executables/directories or 644 for documents), the 10-character symbolic notation (rwxr-xr-x), and the executable bash chmod command.

What is the difference between chmod 777 and chmod 755?▼

chmod 777 grants full read, write, and execute permissions to everyone on the system, creating severe security vulnerabilities. chmod 755 grants write access only to the owner, while allowing group and others to read and execute.

How do octal numbers map to rwx permissions?▼

Read equals 4, Write equals 2, and Execute equals 1. Adding the numbers produces an octal digit between 0 and 7 for each of Owner, Group, and Others.

What does the Sticky Bit (1xxx) do in Linux?▼

The Sticky Bit prevents regular users from deleting or renaming files in a shared directory unless they are the owner of the file or root.

How do I recursively apply permissions to directories and files separately?▼

Use find: 'find . -type d -exec chmod 755 {} +' for directories, and 'find . -type f -exec chmod 644 {} +' for files.