1001Ferramentas
🔐 Dev

Unix Permissions Calculator (chmod)

Calculate Unix file permissions visually. Check read, write and execute for owner, group and others to get the octal code (e.g. 755) and symbolic notation (e.g. rwxr-xr-x).

Entity Read (r) Write (w) Execute (x) Octal
Owner The file owner 0
Group The owning group 0
Others Everyone else 0

Common presets:

Octal code

000

chmod 000 file

Symbolic notation

---------

How it works

Unix permissions are written in octal. Each entity (owner, group, others) gets 3 bits: r (read = 4), w (write = 2) and x (execute = 1). Adding up the bits that are turned on gives that entity's octal digit. For example, rwx = 4+2+1 = 7, rw- = 4+2 = 6, r-x = 4+1 = 5.

From checkboxes to octal, no memorizing

You know what you want: the owner can do everything, the group can read, nobody else touches the file. But chmod expects a number like 755, and one wrong digit either breaks your deploy or leaves the file open to the world. Tick read, write and execute for owner, group and others here and the octal code and symbolic notation (rwxr-xr-x) update instantly, ready to use in your terminal.

Each entity gets three bits: r is worth 4, w is worth 2 and x is worth 1, and the sum forms the octal digit (rwx = 7, rw- = 6, r-x = 5). The detail that trips people up: x means something different on directories. There it grants the right to enter the folder and reach its contents, not to run anything, which is why the convention is 644 for files and 755 for directories. The calculator covers the three classic digits; special bits like setuid and sticky are out of scope.

Use the presets for the common cases and be wary of 777: on a shared server, giving write access to others is asking for trouble. A private SSH key wants 600, and the ssh client itself refuses keys with looser permissions. Everything runs in your browser, nothing is sent anywhere: tick the boxes, check the symbolic string and copy the chmod command shown on screen.

Frequently asked questions

What is the difference between 755 and 777?
With 755 only the owner can write; group and others can read and execute. With 777 any user on the system can modify the file, which is a genuine security risk on a server.
What permissions should an SSH key have?
600 for the private key (owner read and write only) and 644 for the public key. The SSH client refuses private keys with looser permissions.
Does it support setuid, setgid and the sticky bit?
No. It generates the three classic digits (owner, group, others). For special bits, prepend the fourth digit yourself, e.g. chmod 4755.

Related Tools