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).

Entidade Leitura (r) Escrita (w) Execução (x) Octal
Owner Dono do arquivo 0
Group Grupo do arquivo 0
Others Outros usuários 0

Presets comuns:

Código octal

000

chmod 000 arquivo

Notação simbólica

---------

Como funciona

As permissões Unix são representadas em octal. Cada entidade (owner, group, others) tem 3 bits: r (leitura = 4), w (escrita = 2) e x (execução = 1). A soma dos bits ativos forma o dígito octal. Por exemplo, 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