Unix File Permission Calculator
Convert Unix file permissions between octal and symbolic notation instantly.
Enter Unix file permissions in octal format (like 755 or 644) or select read/write/execute permissions for owner, group, and others. Get the equivalent octal number and symbolic notation instantly.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Unix file permissions control who can read, write, or execute files and directories on Linux, macOS, and other Unix-like systems. The permission system uses three categories: owner (the user who owns the file), group (users belonging to the file's group), and others (everyone else on the system).
Each category can have three types of permissions: read (r), write (w), and execute (x). These are represented in two ways: symbolic notation like 'rwxr-xr-x' and octal notation like '755'. This Unix file permission calculator converts between both formats instantly.
In octal notation, each digit represents the permissions for one category. The digit is calculated by adding values: read=4, write=2, execute=1. So rwx=7 (4+2+1), rw-=6 (4+2), r-x=5 (4+1), and r--=4. The first digit is owner permissions, second is group, third is others. When you see 'chmod 644 filename', you're setting owner to read/write (6) and group/others to read-only (4).
When To Use This
Right tool, right situation
Use this Unix file permission calculator when setting up web servers, configuring system scripts, or managing user access on shared systems. Web developers commonly need 755 for CGI scripts, 644 for HTML files, and 600 for configuration files containing database passwords.
System administrators use it when creating backup scripts (700 for owner-only execution), log files (644 for system-readable logs), and shared directories (755 for group collaboration). DevOps engineers rely on precise permissions when deploying applications, setting up automated processes, and securing sensitive files.
The calculator is essential when troubleshooting permission-denied errors, auditing file security, or preparing files for deployment. Instead of guessing or looking up permission tables, you can quickly verify what each octal number means and ensure your chmod commands grant exactly the access needed without security risks.
Common Mistakes
Why results sometimes look wrong
The most dangerous mistake is setting permissions too broadly, especially 777 (rwxrwxrwx) which gives everyone full access. This creates security vulnerabilities by allowing any user to read sensitive data or execute malicious code. Use 755 for executables and 644 for regular files instead.
Another common error is misunderstanding directory permissions. Execute permission on directories means the ability to enter them, not run them as programs. Without execute permission, users cannot access files inside a directory even if they have read permission on the directory itself.
Many users also forget that file permissions are checked in order: owner, then group, then others. If you're the file owner, only owner permissions apply regardless of group memberships. This means an owner with no read permission (like 077) cannot read their own file, even if group and others can.
The Math
Worked examples and deeper derivation
The mathematical foundation of Unix permissions uses binary representation converted to octal for human readability. Each permission bit (read, write, execute) is either 0 (denied) or 1 (allowed). These three bits form a binary number: rwx = 111₂ = 7₈, rw- = 110₂ = 6₈, r-x = 101₂ = 5₈.
The octal conversion works by treating each permission as a power of 2: execute=2⁰=1, write=2¹=2, read=2²=4. To calculate the octal digit, add the values for granted permissions. For example, read and execute permissions (r-x) equals 4+0+1=5.
This mathematical system allows 8 possible permission combinations per category (0-7), giving 8³=512 total permission combinations for any file. The most common patterns are 755 for executables, 644 for regular files, 600 for private files, and 777 for world-writable files (generally avoided for security).
Common questions
Need something this doesn't cover?
Suggest a tool — we'll build it →