Every developer eventually faces a chmod 755 or chmod 644 and wonders: what exactly does that mean? Linux file permissions use a 3-digit octal system that's logical but not intuitive. A chmod calculator translates between human-readable checkboxes and the numeric codes you need.
What Is Chmod Calculator?
A chmod calculator provides a visual matrix of permissions (read, write, execute) for three user levels (owner, group, others). Toggle checkboxes to set permissions, and the tool instantly shows the numeric (e.g., 755) and symbolic (e.g., rwxr-xr-x) representations. It also generates the chmod command.
How to Use Chmod Calculator on DevToolHub
- Open the Chmod Calculator tool on DevToolHub — no signup required.
- View the 3×3 permission matrix (Owner, Group, Others × Read, Write, Execute).
- Toggle checkboxes for each permission you want to grant.
- See the numeric (755) and symbolic (rwxr-xr-x) values update in real time.
- Copy the
chmodcommand for your terminal. - Review common presets (644 for files, 755 for directories, 600 for secrets).
Standard Web File Permissions
Files served by a web server:
chmod 644 index.html
# Owner: read + write (6)
# Group: read (4)
# Others: read (4)
# Symbolic: rw-r--r--
chmod 755 upload/
# Owner: read + write + execute (7)
# Group: read + execute (5)
# Others: read + execute (5)
# Symbolic: rwxr-xr-xFiles get 644 (readable by everyone, writable only by owner). Directories get 755 (traversable by everyone, modifiable by owner).
Protecting Sensitive Files
SSH keys and environment files:
chmod 600 ~/.ssh/id_rsa
# Owner: read + write (6)
# Group: none (0)
# Others: none (0)
# Symbolic: rw-------
chmod 400 ~/.ssh/id_rsa.pub
# Owner: read only (4)
# Symbolic: r--------
chmod 600 .env
# Only the application user can read secretsSSH refuses to use keys with permissions broader than 600 — this is a common source of 'permission denied' errors.
Executable Scripts
Making scripts runnable:
chmod 755 deploy.sh
# Owner: full access (7)
# Group: read + execute (5)
# Others: read + execute (5)
chmod +x start.sh
# Adds execute for all (equivalent to a+x)
# Same as chmod 755 if file was 644The +x shorthand adds execute permission without changing read/write — the symbolic approach is more intuitive for single changes.
Pro Tips
- Remember the pattern — Read=4, Write=2, Execute=1. Add them: 7=rwx, 6=rw, 5=rx, 4=r, 0=none.
- Directories need execute — you can't
cdinto a directory without execute permission, even with read. - Use 600 for secrets — .env files, API keys, and SSH keys should be owner-only (600 or 400).
- Check with ls -la — verify permissions after changing:
ls -la filenameshows the symbolic notation.
When You Need This
- Setting correct permissions during server deployment
- Fixing 'permission denied' errors for SSH keys and scripts
- Understanding permissions shown by
ls -laoutput - Teaching Linux permissions to new team members
Free Tools Mentioned in This Article