
| Read (r=4) | Write (w=2) | Execute (x=1) | |
|---|---|---|---|
| Owner (u) | |||
| Group (g) | |||
| Others (o) |
u=rwx,g=rx,o=rxchmod 755 fileTick read, write and execute for the owner, the group and others. The octal number (e.g. 755), the symbolic form (rwxr-xr-x) and the ready-to-run chmod command update instantly. It also works the other way: type an octal number or a symbolic string and the checkboxes follow.
Special bits are supported: setuid (4), setgid (2) and sticky (1) form the fourth leading digit, for example 1777 for /tmp.
Owner read+write+execute, group and others read+execute = 4+2+1, 4+1, 4+1 = chmod 755 deploy.sh.
644 or 755? 644 for normal files, 755 for folders and executable scripts.
Why should I avoid 777? Everyone on the server could modify or replace the file; give only the access that is needed.
What does a capital S or T mean? The special bit is set but execute is not, which is usually a mistake.