⚡ Free Online Tool

chmod Calculator – Unix File Permission Calculator

Build Linux file permissions visually. Click the permission cards to toggle them or type an octal value for instant reverse lookup. Runs entirely in your browser.

Common Presets

Octal notation

Type a value to reverse lookup

Symbolic notation

Type a value to reverse lookup

chmod command

chmod 755 filename

Owner

u (user)

7
octal
r
Read
4
w
Write
2
x
Execute
1

Group

g

5
octal
r
Read
4
w
Write
2
x
Execute
1

Others

o

5
octal
r
Read
4
w
Write
2
x
Execute
1

Permission Matrix

Permission What it allows Owner Group Others
r View file or directory contents r r r
w Create, edit or delete the file w - -
x Run as program or enter directory x x x

Frequently Asked Questions

What are Linux File Permissions?

Every file and directory on a Linux system has three sets of permissions attached to it. The first applies to the owner, the second to a group, and the third to everyone else on the system. Within each set there are three permission types: read lets the contents be viewed, write lets changes be made, and execute lets the file be run as a program. Getting permissions right is a basic requirement for securing any Linux server. An incorrectly permissioned file can expose configuration data, allow unauthorized writes, or let untrusted code run. You can view the current permissions on any file by running ls -la in your terminal.

How to Use chmod

The basic syntax is chmod followed by the permission value and then the filename. You can express permissions as a three digit octal number like 755 or using symbolic notation like u+x to add execute permission for the owner only. To apply the same permissions to every file inside a directory recursively, add the -R flag. On a web server you would typically run chmod 644 on all HTML and config files and chmod 755 on all directories so the web server process can read files and navigate directories without being able to write to them.

Understanding Octal Permission Notation

Each octal digit maps directly to a group of three permissions. Read is worth 4, write is worth 2, and execute is worth 1. You add those values for whichever permissions you want. Full permissions is 4 plus 2 plus 1 which equals 7. Read and write with no execute is 4 plus 2 which equals 6. Read only is just 4. No permissions is 0. So 755 means the owner has 7 for full access, and both group and others have 5 for read plus execute. Using a chmod calculator removes the mental arithmetic entirely and shows you the symbolic notation and the ready-to-run command at the same time.

Common chmod Examples for Web Servers

Web servers like nginx and Apache need to read your files but should never write to them during normal operation. The standard setup is 644 on all files and 755 on all directories. Files with 644 let the server process read them while blocking writes. Directories with 755 let the server navigate into them. Setting files to 777 gives the server process write access, which is a serious security exposure because a compromised script or malicious upload could overwrite any reachable file. Setting up a new server? Use our gitignore generator to create a gitignore file for your project, and check out our Docker run to Compose converter if you are containerising that server.