Tools

chmod calculator

Build a Unix file mode in your browser. Tick rwx, setuid/setgid/sticky, copy chmod octal. Nothing is uploaded.

ReadWriteExecute Owner Group Other

Tick bits or type octal. This does not change a file on disk.

How to use the chmod calculator

  1. Tick owner, group, and other bits, or type 755 / 644 / 4755.
  2. Optional setuid, setgid, and sticky.
  3. Copy chmod 755 backup.sh — this page does not change a disk.

Octal vs letters

Four digits when a special bit is on (4755). Symbolic output uses s/S and t/T the way ls -l does. 755 is owner rwx and everyone else rx; 644 is owner rw and everyone else r. Pair it with the Linux permission notes on this site.

Nothing is uploaded

The mode is local. You still run chmod on the host.

chmod calculator FAQ

What is sticky?

On a directory, only the owner can delete their names (typical /tmp).

setuid on a script?

Most kernels ignore setuid on scripts. Use it on binaries you understand.

Related tools