Calculate Linux File Permissions Instantly
The fastest way to convert, inspect, and verify Unix/Linux file permissions. Switch between numeric octal digits, symbolic notation, and ready-to-run shell commands with real-time feedback.
Permission Checkbox Matrix
Click any permission to recalculate instantly4thAdvanced / Special Permissions (SUID, SGID, Sticky Bit)Active
For Files: x allows binary or script execution.
For Directories: x is the search/traverse bit, required to cd into the directory and access inner files. Without directory execute, users cannot open subdirectories even with read rights!
Octal to Binary & Symbolic Conversion Table
Every octal digit (0–7) directly represents a 3-bit binary triplet where each bit controls Read (4), Write (2), and Execute (1).
| Octal | Binary | Symbolic | Granted Rights |
|---|---|---|---|
| 7 | 111 | rwx | Read, Write, and Execute |
| 6 | 110 | rw- | Read and Write |
| 5 | 101 | r-x | Read and Execute |
| 4 | 100 | r-- | Read Only |
| 3 | 011 | -wx | Write and Execute |
| 2 | 010 | -w- | Write Only |
| 1 | 001 | --x | Execute Only |
| 0 | 000 | --- | No Permissions |
Understanding Linux User Classes
Linux permissions evaluate access strictly in order: if you match the Owner, group and others permissions are ignored.
User / Owner
The individual user account that created or owns the file.
Group
Members of the group assigned to the file for shared team access.
Others / Public
All other system users with accounts on the operating system.
All
Shorthand representing User + Group + Others combined (equivalent to ugo).
File Permissions vs Directory Permissions
The same letter (r, w, x) has fundamentally different operational behavior depending on whether it applies to a file or a folder.
| Permission | When Applied to a File | When Applied to a Directory |
|---|---|---|
| r (Read = 4) | Open and view the file's data/contents (e.g. with cat, less). | List the names of files within the directory (e.g. using ls). |
| w (Write = 2) | Modify, overwrite, or append data to the file. | Create new files, delete existing files, or rename files inside the directory (regardless of who owns those files!). |
| x (Execute = 1) | Execute the file as an application, script, or binary program. | Traverse/search into the directory (via cd) and access files or subdirectories inside. |
Most Common Linux Chmod Permissions
Click any preset to view comprehensive architectural guides, security implications, and real-world scenarios.
rwxr-xr-xStandard Executable & Web Directory
Owner has full access; Group and Others can read and execute.
rw-r--r--Standard Web & System File
Owner can read and write; Group and Others can read only.
rwxrwxrwxFull Unrestricted Access (Dangerous)
Read, write, and execute permissions granted to everyone on the system.
rwx------Private Directory & Executable
Owner has full access; Group and Others have zero access.
rw-------Confidential & SSH Private Key
Owner can read and write; Group and Others have zero permissions.
r--------Owner Read-Only / AWS Key Pair
Owner can read only; Group and Others have zero access.
How Linux File Permissions and Chmod Work
A complete overview of the POSIX security architecture, inode flags, and permission calculations.
1. What Does "chmod" Mean?
In Unix and Linux operating systems, chmod is short for "change mode". The "mode" of a file refers to its access permissions and special attribute flags stored inside its filesystem inode. Every file and directory on a Linux filesystem has an owner (User), an associated Group, and defined permissions for anyone else (Others).
-rwxr-xr-x 1 nikhil staff 4096 Sep 15 22:00 myfile.sh
2. The Binary Octal Number System Explained
Linux permissions are stored in binary bits. Each permission triplet corresponds to three binary switches:
- Read (r) = 4 (Binary:
100) — Allows viewing data. - Write (w) = 2 (Binary:
010) — Allows creating, modifying, or deleting data. - Execute (x) = 1 (Binary:
001) — Allows running binaries or traversing directories.
To compute any digit, add the numbers: 4 + 2 + 1 = 7 (Full permissions), 4 + 2 = 6 (Read & Write), 4 + 1 = 5 (Read & Execute), and 4 = 4 (Read only).
3. Security Best Practices: Why You Should Avoid chmod 777
Many tutorials advise running chmod 777 to quickly resolve "Permission denied" errors. In production, this is considered a critical vulnerability. Granting write and execute permissions to "Others" allows any process running on your server (including a compromised web service or third-party package) to overwrite your application code, inject malware, or delete databases.
Recommended alternatives:
Frequently Asked Questions
Everything you need to know about Linux octal numbers, symbolic strings, and permission calculations.