Linux Permission Calculator (chmod)
Calculate chmod numeric and symbolic permissions from a visual rwx matrix. Toggle owner, group, others, and special bits to generate secure and accurate Linux file mode commands.
Toggle permissions for owner, group, and others to generate chmod numeric mode, symbolic mode, and Linux-style permission strings instantly.
Numeric Mode
755
Symbolic Mode
u=rwx,g=rx,o=rx
ls -l Format
-rwxr-xr-x
Command
chmod 755 filename
| Class | Read (4) | Write (2) | Execute (1) | Digit |
|---|---|---|---|---|
| Owner (u) | 7 | |||
| Group (g) | 5 | |||
| Others (o) | 5 |
Special Bits
Quick Presets
Features
Visual Permission Matrix
Toggle read, write, and execute bits for owner, group, and others in a clear checkbox table.
Numeric and Symbolic Output
Generate octal mode values like 755 and symbolic expressions like u=rwx,g=rx,o=rx instantly.
Special Bit Support
Include setuid, setgid, and sticky bits for advanced Linux permission scenarios.
Copy-Ready Commands
Copy generated chmod modes and command strings directly for shell usage and scripts.
Use Cases
Deployment and CI scripts
Set precise executable and read/write permissions in build pipelines and release automation without guessing octal values.
Server hardening
Review and minimize over-permissive file modes to reduce accidental exposure in production environments.
Shared directories
Use sticky bit and group permission combinations for controlled collaboration in shared Linux folders.
Permission troubleshooting
Translate between symbolic, numeric, and ls -l output when debugging permission denied errors.
Web server configuration
Verify correct ownership and mode combinations for web root directories, ensuring files are readable by the server process without being world-writable.
Security auditing and compliance
Cross-reference file modes against CIS benchmark recommendations and internal security policies to identify over-permissive settings before audits.
About Linux Permission Calculator
How chmod values are calculated
Each class (owner, group, others) combines read (4), write (2), and execute (1). The sum of selected bits forms each octal digit, such as 7 for rwx and 5 for r-x.
Special bits explained
A leading octal digit adds special behavior: setuid (4), setgid (2), and sticky (1). This calculator includes these bits so advanced modes like 2755 and 1777 are easy to compose.
Symbolic vs octal notation
Octal notation like 755 is compact and script-friendly, while symbolic notation like u=rwx,go=rx is more readable and supports relative changes with + and -. This tool shows both representations so you can choose the right form for your context.
Principle of least privilege
Granting only the minimum permissions required for a file or directory to function reduces the blast radius of misconfigurations and compromised processes. Reviewing modes before deployment is a simple but effective step in any Linux hardening checklist.
Related Tools
JSON to YAML
Convert JSON to YAML format instantly - Free online JSON to YAML converter
XML to YAML
Convert XML to YAML format for configuration migration - Free online XML to YAML converter
CSV to YAML
Convert CSV spreadsheet data to YAML format - Free online CSV to YAML converter
TSV to YAML
Convert TSV tab-separated data to YAML format - Free online TSV to YAML converter
Frequently Asked Questions
What does chmod 755 mean?
chmod 755 means owner has rwx permissions (7), while group and others have r-x permissions (5). It is commonly used for executable scripts and directories.
When should I use 644 instead of 755?
Use 644 for regular files that should not be executable. Use 755 only when execute permission is required, such as for scripts or directories.
What does the sticky bit do?
Sticky bit on a directory allows users to create files but restricts deletion to the file owner, directory owner, or root. /tmp commonly uses mode 1777.
Why does ls show s, S, t, or T characters?
These letters indicate special bits in the execute positions. Lowercase means execute is also set; uppercase means execute is not set for that class.
Is this chmod calculator free to use?
Yes. The tool is free and runs directly in your browser.
What are common safe permission presets for web server files?
Typically 644 for static files (owner read/write, group and others read-only) and 755 for directories and executable scripts. Avoid 777 in production as it grants write access to all users.
Does this tool upload my permission data?
No. All calculations run locally in your browser and nothing is sent to a server.