Skip to content
Engyna

Chmod Calculator

Convert Unix permissions between checkboxes, octal like 755 and symbolic like rwxr-xr-x, with ready chmod commands.

How to use the Chmod Calculator

  1. 1Tick read, write and execute for owner, group and others, or type an octal mode like 755 or a symbolic one like rwxr-xr-x.
  2. 2Add setuid, setgid or the sticky bit, or start from a common preset, and read what the mode allows in plain words.
  3. 3Enter a path to get chmod, chown and find commands, and work out default permissions from a umask.

About Chmod Calculator

The Chmod Calculator converts Unix file permissions between three notations: checkboxes for read, write and execute for owner, group and others, octal modes like 755 or 644, and symbolic strings like rwxr-xr-x. Change any of them and the others follow. It also handles the special bits setuid, setgid and sticky, and offers presets for common modes.

For each mode the permissions calculator explains in plain words who may read, change or run the file or open the folder. Enter a path and it writes ready chmod commands in octal and symbolic form, a chown or chgrp command when you name an owner or group, and for recursive changes find commands that set separate modes for files and folders. A umask section works out which default permissions new files and folders get.

It helps web developers fixing permission errors on a server, sysadmins hardening SSH keys or shared folders, and students learning how Linux permissions work. The chmod calculator is also a quick check before running a recursive chmod that would be hard to undo.

Frequently asked questions

What does chmod 755 mean?

Each digit is the sum of read (4), write (2) and execute (1) for owner, group and others. 755 means the owner can read, write and execute (7), while group and others can read and execute (5). It is the usual mode for programs and folders.

What is the difference between 644 and 755?

644 (rw-r--r--) is for normal files: the owner can edit, everyone can read. 755 (rwxr-xr-x) adds execute, which programs need to run and folders need to be opened.

Why is chmod 777 dangerous?

It lets every user on the system change or replace the file. On a web server that means any compromised process can plant code. Give write access only to the owner or a group instead.

What are setuid, setgid and the sticky bit?

They are the fourth, leading digit. setuid (4) runs a program with its owner's rights, setgid (2) does the same for the group and makes new files in a folder inherit the folder's group, and the sticky bit (1) on a shared folder like /tmp stops users from deleting each other's files.

How does umask work?

The umask lists the bits new files and folders don't get. Files start from 666 and folders from 777, so a umask of 022 gives 644 files and 755 folders, and 077 gives 600 and 700.