html69// developer tools

Linux Chmod Permissions Explained (Calculator and Manual Guide)

Chmod & Linux Permissions Calculator

Few things humble a developer faster than deploying code, hitting Permission denied, and typing chmod 777 like a panic button. Five minutes later you remember that 777 is leaving the front door open with a welcome mat.

Skip the guesswork. The Chmod & Linux Permissions Calculator lets you toggle Read, Write, and Execute for Owner, Group, and Public, then copy octal (0755), symbolic (rwxr-xr-x), and a chmod command. We never see what you paste.

Calculate Linux permissions visually

Check or uncheck bits and watch the octal, the ls -l string, and a ready-to-copy command update. Paste 755, rwxr-xr-x, an ls -l line, or chmod 644 file back onto the controls. Setuid, setgid, and sticky sit on a fourth digit when you need them (4755).

Scheduling the job that uses those files? Use the Cron Expression & Crontab Generator / Parser. Checking whether a download matches? Use the Hash Generator (MD5 / SHA-256). Those tools also run on your computer.

Octal vs symbolic: how the math works

Linux permissions are three bits and three classes.

BitWhat it does
r = 4Read a file, or list a directory.
w = 2Edit a file, or create/delete inside a directory.
x = 1Run a file, or enter (cd) a directory.

Owner is u, Group is g, Public (others) is o. Each digit in 755 or 644 is 4 + 2 + 1 for that class:

DigitMeaning
7rwx (4+2+1)
6rw- (4+2)
5r-x (4+1)
4r-- (read only)
3-wx (2+1)
2-w- (write only)
1--x (execute only)
0--- (none)

So 755 is owner rwx, group r-x, public r-x: rwxr-xr-x.

Common chmod values

ModeTypical use
644 / rw-r--r--Files, HTML, CSS, JS, configs
755 / rwxr-xr-xDirectories, scripts, executables
600 / rw-------Private keys, .env, secrets
700 / rwx------Private scripts or folders
777 / rwxrwxrwxAlmost never. High risk in production.

How to change and check permissions by hand

The calculator is the fast check. ls and chmod still matter when you are SSH'd in or writing a deploy script.

1. Check current permissions with ls -la

Bash

ls -la

Sample output

-rw-r--r--  1 deploy www-data  1048 Nov 28 14:10 index.html
drwxr-xr-x  2 deploy www-data  4096 Nov 28 14:10 assets

A leading - is a regular file. d is a directory. The next nine characters are owner, group, and public in that order.

2. Set permissions with numeric mode

Bash

chmod 644 app.css
chmod 755 deploy.sh

Recurse with -R only when you mean it. Do not run -R 777 across a tree:

Bash

chmod -R 755 public_html

Directories usually need execute so users can enter them. Static files usually do not. In Node, the same bits are 0o755. The calculator copies that snippet too. Windows Node ignores POSIX mode bits.

3. Update bits with symbolic mode

Use u, g, o, and a when you only want to add or remove one bit:

Bash

# Add execute for the owner
chmod u+x build.sh

# Remove write for group and public
chmod go-w config.json

# Grant read to everyone
chmod a+r README.md

4. A security check before you hit Enter

  • Avoid 777 in production. If a web process can write there, a bug gets much easier to exploit. Fix ownership with chown, or give a shared group write with chmod g+w.
  • Keep secrets at 600. SSH private keys (id_ed25519, id_rsa) and credential files should stay owner-only. SSH will refuse keys that are too open.

Toggle bits in the Chmod & Linux Permissions Calculator, or run ls -la and chmod on the box. The calculator stays on your computer. We never see the files.

All blog posts