Linux chmod Calculator
Toggle read, write and execute permissions for user, group and other to instantly compute the octal value, symbolic notation, and the chmod command to run.
chmod 755 filename
What is a chmod Calculator?
A chmod calculator helps you compute and visualize Unix file permission values without memorizing the octal numbering system. In Linux and macOS, every file and directory has a set of permission bits that control who can read, write, or execute it. These permissions are represented both as a symbolic string (like rwxr-xr-x) and as an octal number (like 755) passed to the chmod command. Getting permissions right is critical: too permissive and you expose sensitive files; too restrictive and scripts and services fail to run.
The octal system works by assigning numeric values to each permission bit: read is 4, write is 2, and execute is 1. These values are summed for each of the three permission groups — user (owner), group, and other — and the results form the three-digit octal number. So 755 means user has 4+2+1=7 (full permissions), group has 4+0+1=5 (read and execute), and other has 4+0+1=5 (read and execute). This calculator lets you toggle individual bits and see the resulting octal value instantly without doing the arithmetic manually.
When to Use This Tool
- Shell scripts and executables: Scripts need execute permission set before they can be run directly — use this tool to confirm the right octal value before running
chmodin production. - SSH private keys: The SSH client refuses to use private keys with permissions wider than
600(owner read/write only); use this tool to verify the correct value before copying a key to a new server. - Web server directories: Web servers commonly require directories to have execute permission (at minimum
755) so they can be traversed, but files to be read-only (644); calculate the right combination here. - CI/CD pipeline debugging: When a pipeline fails with a "permission denied" error on a script or binary, compute the correct octal value to add to your pipeline's setup step.
How It Works
The calculator maintains three groups of three permission bits — read (r=4), write (w=2), and execute (x=1) for user, group, and other. Each toggle updates the internal state, and the octal value for each group is computed as the sum of the values of the enabled bits. The three group sums are concatenated to form the full octal string, and the symbolic notation is built by mapping each bit to its letter or a dash. You can also type an octal value directly and the checkboxes will update to reflect the individual bits, making it easy to understand what any given permission string means.
Frequently Asked Questions
What does chmod 755 mean?
chmod 755 sets permissions to rwxr-xr-x: the owner (user) can read, write, and execute the file; members of the file's group can read and execute but not write; and all other users on the system can also read and execute but not write. This is the standard permission for executable shell scripts, compiled binaries, and directories that need to be accessible to everyone on the system. For directories specifically, the execute bit controls the ability to list and traverse the directory's contents.
What is the difference between chmod 644 and 755?
chmod 644 (rw-r--r--) gives the owner read and write access, and all others read-only access. This is the correct permission for regular files that should be readable by all users but only modifiable by the owner — configuration files, HTML pages, and CSS files are common examples. chmod 755 (rwxr-xr-x) adds execute permission for all three groups, which is required for shell scripts, compiled executables, and directories. Using 755 on a plain text file is not harmful but it is unnecessary; using 644 on a script will cause "permission denied" when you try to run it directly.
What is the difference between user, group and other in Linux permissions?
Linux permission bits are divided into three categories. "User" (also called owner) refers to the specific user account that owns the file — usually whoever created it. "Group" refers to any user account that is a member of the file's owning group, which is a way to grant shared access within a team (for example, all members of a "developers" group) without granting access to the entire system. "Other" refers to all remaining users — anyone who is neither the owner nor a member of the owning group. Each category independently controls the read (r=4), write (w=2), and execute (x=1) bits.