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?
What permissions should an SSH key have?
Does it support setuid, setgid and the sticky bit?
Related Tools
Cron Expression Editor
Parse and build cron expressions with human-readable descriptions, next execution times and shortcuts for common schedules.
Cron Generator
Generate cron expressions (5 fields: minute, hour, day, month, weekday) with common presets and natural-language description.
SQL Minifier
Minify SQL code by removing unnecessary whitespace and comments.