Chmod calculator
Unix file permissions control owner, group, and others access with read (r=4), write (w=2), execute (x=1) bits. chmod 755 means rwxr-xr-x. Toggle checkboxes or enter octal to see symbolic form — essential when fixing deploy scripts and Docker volume permissions.
How to use the chmod calculator
1. Toggle read/write/execute for owner, group, and others.
2. Read octal value (e.g. 644, 755, 600).
3. Copy symbolic equivalent chmod u=rw,go=r.
4. Apply on server: chmod 644 file.txt
Chmod examples
Web directory 755
rwxr-xr-x lets owner modify files; world can enter directory and read.
Secret env file 600
rw------- — only owner reads/writes .env with API keys.
Executable script 755
rwxr-xr-x on deploy.sh so cron user can execute.
When chmod calculator helps
• When learning Unix permission model.
• When Dockerfile COPY needs explicit numeric mode.
• When ls -l rwxr-xr-x output must map to octal for IaC template.
Owner group others
Three triplets user/group/others — chmod affects which triplet applies to current user context on access check.
Frequently asked questions
Octal digit meaning?
Sum r=4 w=2 x=1 per triplet — 7=rwx, 6=rw-, 5=r-x, 4=r--.
755 vs 775?
775 adds group write — shared dev team editing; 755 group read-only.
Recursive chmod -R?
Applies to directory tree — dangerous on wrong path; verify twice.
File vs directory execute?
x on directory means enter (cd); on file means run as program.
umask interaction?
Default file mode = creation mask minus umask — calculator shows target mode not umask.