Chmod Calculator

Permissions

Permission matrix
ReadWriteExecuteDigit
Owner (user)7
Group5
Others5
Special bits

Result

Octal notation
Symbolic notation
As shown by ls -l
-rwxr-xr-x

Command

chmod 755 file

Each digit adds read (4), write (2) and execute (1) permissions for the owner, the group and everyone else. An optional leading fourth digit sets setuid (4), setgid (2) and the sticky bit (1).

Common permission values
755rwxr-xr-xPrograms, scripts and directories: the owner can change them, everyone can read and run them
644rw-r--r--Regular files: the owner can edit, everyone can read
700rwx------Private directory or script: owner only
600rw-------Private files such as SSH keys: owner can read and write
775rwxrwxr-xShared group directory: owner and group can change it
664rw-rw-r--Shared group file: owner and group can edit it
1777rwxrwxrwtShared temporary directory such as /tmp: anyone can create files, but only their owners can delete them

Processed locally in your browser. Your input is not uploaded or saved by this tool, but Copy link puts the text you entered into the link.

About this tool

Unix-like systems such as Linux and macOS control access to every file and directory with three sets of permissions: for the owner, for the file's group and for everyone else. The chmod command sets them with either an octal number such as 755 or symbolic letters such as rwxr-xr-x. This chmod calculator converts between checkboxes, octal and symbolic notation and builds the command to copy.

How it works

Tick the read, write and execute boxes for the owner, group and others, or type an octal value such as 644 or a symbolic value such as rw-r--r--. All three views stay in sync, and the command at the bottom updates with the file name you enter.

Each octal digit is the sum of read (4), write (2) and execute (1) for one class of users. A fourth digit in front sets the special bits: setuid (4) runs a program as its owner, setgid (2) runs it as its group or makes new files in a directory inherit the group, and the sticky bit (1) lets only owners delete their files in a shared directory.

Example

For 755 the owner gets 4+2+1=74 + 2 + 1 = 7 (read, write, execute), and the group and others each get 4+1=54 + 1 = 5 (read and execute). In symbolic form that is rwxr-xr-x, and the command is chmod 755 file.

Adding the sticky bit to 777 gives 1777, shown as rwxrwxrwt, the usual permissions of the /tmp directory.

Assumptions and limits

The calculator produces absolute permission modes. It does not build relative symbolic changes such as chmod g+w, change ownership or apply access control lists (ACLs). Commands are generated as text and nothing is run on your computer. On a directory, execute permission means the right to enter it and access files inside.

Frequently asked questions

What does chmod 755 mean?

The owner can read, write and execute; the group and everyone else can read and execute but not modify. It is the usual setting for scripts, programs and directories that others need to use.

What is the difference between 644 and 755?

644 (rw-r--r--) lets the owner edit and everyone read, with no execute permission, which suits ordinary files. 755 adds execute for everyone, which programs need to run and directories need to be opened.

Why should I avoid chmod 777?

777 lets every user on the system modify or replace the file, which is a security risk, especially for web files and scripts. Grant only the permissions that are actually needed.

What do s and t mean in permissions?

An s in the owner or group execute position means setuid or setgid is set; a t in the others position means the sticky bit is set. A capital S or T means the special bit is set without the underlying execute permission.

How do I apply permissions to a whole folder?

chmod -R applies a mode recursively, but files and directories usually need different modes. A common approach is find with -type d to set 755 on directories and -type f to set 644 on files.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
permissionsPermissionstext in the tool's notation, see the examplesrequired
file_nameFile or directory nametext; your own text; Copy link includes itcounted as file

Examples

  • ?permissions=644&file_name=index.html
  • ?permissions=rwsr-xr-x
  • ?permissions=1777&file_name=/tmp

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="chmod"]