chmod Calculator

chmod Calculator

Click the permission cells to build Unix file permissions. All computation runs in your browser.

Octal
755
=
Symbolic
rwxr-xr-x
Command
chmod 755 <file>
Presets:
Enter octal directly: (3 or 4 digits, e.g. 755 or 4755)
Owner
Group
Others
r Read 4
w Write 2
x Execute 1
Digit
7
5
5
Plain-English Description

About the chmod Calculator

On Linux, macOS and other Unix-like systems, every file has permissions for three groups of users — the owner, the file's group and others — and each can be allowed to read (4), write (2) and execute (1). Adding the values gives one octal digit per group, so 755 means rwx for the owner and r-x for everyone else.

This chmod calculator lets you click permission cells or type an octal value, and shows the octal number, the symbolic form (rwxr-xr-x), the ready-to-run chmod command and a plain-English description. It also handles the special bits — setuid, setgid and the sticky bit — and includes presets for the most common permission sets.

Common uses

  • Fixing "Permission denied" errors on scripts and deployment files.
  • Securing SSH keys, which must be 600 or OpenSSH will refuse to use them.
  • Setting correct permissions for web server directories and uploaded files.
  • Understanding the permissions shown by ls -l.

How to use it

  1. Click the read, write and execute cells for owner, group and others — or pick a preset such as 755 or 644.
  2. Or type an octal value directly (3 or 4 digits).
  3. Copy the generated chmod command and run it on your file.

Example

Typical permissions for a web page file:

Input
644
Output
Symbolic: rw-r--r--
Command:  chmod 644 <file>
Owner can read and write; group and others can only read.

Tips and common pitfalls

  • Common values: 755 for directories and scripts, 644 for normal files, 600 for private keys and secrets, 700 for private directories.
  • Avoid 777. It lets any user on the system modify or replace the file, which is rarely necessary and often exploited.
  • On a directory, execute (x) means "may enter and access files inside". Without it, read permission alone does little.
  • The sticky bit (1000) on shared directories such as /tmp stops users deleting each other's files. setuid (4000) on executables runs them as the owner and should be used very sparingly.

Frequently asked questions

What does chmod 755 mean?

The owner can read, write and execute (7 = 4+2+1); the group and others can read and execute (5 = 4+1) but not modify.

What is the difference between numeric and symbolic chmod?

Numeric mode (chmod 644 file) sets all permissions at once. Symbolic mode (chmod u+x file) adds or removes specific permissions and leaves the rest unchanged.

How do I apply permissions recursively?

Use chmod -R, but be careful: directories and files usually need different modes. A safer pattern is find dir -type d -exec chmod 755 {} + and find dir -type f -exec chmod 644 {} +.

Do these permissions apply on Windows?

No. Windows uses access control lists (ACLs) managed with icacls or the file properties dialog. chmod values matter on Linux servers, containers, macOS and WSL.

Related