Tech News, Tech & Coding · Free Online Tools

IT Question Answer
Tools
Developer & Text ToolsFree100% Client-Side

Chmod Calculator

Set Linux file permissions with checkboxes and get the octal value, symbolic form and chmod command.

100% privateRuns instantly in-browserUpdated regularly

Advertisement

Runs in your browser

Your input is processed on your device and is not uploaded to our servers.

Fast

No queues and no upload wait, so results appear as soon as you act.

Clean and simple

Dark mode, no popups, and no signup.

What you get

  • Owner, group and others checkboxes
  • Octal and symbolic output
  • Setuid, setgid and sticky bit
  • Copy-ready chmod command
  • Common presets

What chmod does

On Linux and macOS every file has permissions that say who may read, write or execute it. The chmod command changes them. Permissions are written either as a three or four digit octal number, such as 755, or as letters, such as rwxr-xr-x. This calculator lets you tick the permissions you want and shows both forms plus the ready-to-run command.

How the numbers work

Each permission has a value, and you add them for each group (owner, group, others):

read (r)    = 4
write (w)   = 2
execute (x) = 1

7 = 4+2+1 = rwx
6 = 4+2   = rw-
5 = 4+1   = r-x
4 = 4     = r--
0         = ---

How to use it

  • Tick read, write and execute for the owner, the group and others.
  • Or type an octal value such as 644 and see the boxes update.
  • Enter the file or folder name and, if needed, tick recursive.
  • Copy the chmod command.

Permissions you will use most

  • 755 (rwxr-xr-x): programs, scripts and folders that others may enter and run.
  • 644 (rw-r--r--): ordinary files that everyone may read but only the owner may edit.
  • 600 (rw-------): private files such as SSH keys.
  • 700 (rwx------): private folders.
  • 777 gives everyone full access. Avoid it. It is rarely needed and is a common security mistake.

Special bits

  • Setuid (4): the file runs with the permissions of its owner.
  • Setgid (2): runs with the group of the file, or makes new files in a folder inherit the folder group.
  • Sticky (1): in a shared folder such as /tmp, only a file owner may delete it. Example: 1777.

Related tools

Advertisement

Frequently asked questions

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

644 lets everyone read the file. 600 lets only the owner read and write it.

No. It lets every user read, change and run the file. Use a narrower permission instead.

It applies the change to a folder and everything inside it, recursively.

Yes. For a folder, execute means permission to enter it and reach the files inside.