Back to home

Chmod Calculator

Tick the permissions you want or type an octal number such as 755. The octal, symbolic form and the chmod command update together.

  1. Tick the permissions or type an octal value
  2. Read the symbolic form
  3. Copy the chmod command
Loading the tool...

Your files never leave your device

Understanding Unix permissions

On Linux and other Unix-like systems every file has permissions for three groups: the owner, the group and everyone else. Tick the read, write and execute boxes or type an octal number such as 755, and the tool shows the octal number, the symbolic form and the matching chmod command.

A worked example

For 755, the first digit 7 is 4 plus 2 plus 1, so the owner can read, write and execute. The digits 5 and 5 are 4 plus 1, so the group and others can read and execute. That is written rwxr-xr-x, and the command is chmod 755 followed by the file name.

For 644 the owner gets 4 plus 2, read and write, and the others get only read, which gives rw-r--r--. This is the usual setting for ordinary files such as web pages, while 755 suits scripts and folders.

Safety and common mistakes

Avoid 777 unless you truly need it, because it lets every user on the system change or replace the file. On a shared server this is a security risk. It is usually better to fix the owner or the group than to widen the permissions.

Directories need the execute permission to be entered, so a folder with 644 cannot be opened. The special bits are powerful: setuid runs a program as its owner and the sticky bit on a shared folder, such as 1777, lets only owners delete their own files.

Frequently asked questions

What does 755 mean?

The owner can read, write and execute. Group and others can read and execute.

What does 644 mean?

The owner can read and write. Group and others can only read. It is common for files.

Is 777 safe?

Rarely. It lets everyone modify the file, so use it only when you truly need to.

What are setuid, setgid and sticky?

Special bits: run as the owner, run as the group, or only owners can delete files in a shared folder.

Does it work on Windows?

The calculator is for Linux and Unix style systems, though the notation is also used in some tools on other systems.

Is anything uploaded?

No. Everything is calculated on your device.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D