chmod Calculator

Set Linux and Unix file permissions with checkboxes and get the octal number, the rwx string you see in ls -l, and ready-to-run chmod commands in both styles. Or type 750, rwxr-x--- or a full line such as drwxr-xr-x to see what it means. Setuid, setgid and the sticky bit are included, and a umask helper shows what permissions new files and folders will get.

Owner (u)
Group (g)
Others (o)

Run as the file owner

Run as the group; directories pass on their group

Only owners can delete in a shared directory

Octal (755, 4755) or symbolic (rwxr-xr-x, or a full ls line like drwxr-xr-x).

Common:
Octal755
Symbolicrwxr-xr-x
Command (octal)chmod 755 deploy.sh
Command (symbolic)chmod u=rwx,g=rx,o=rx deploy.sh
  • Owner: read, write, execute
  • Group: read, execute
  • Everyone else: read, execute

Run umask in your terminal to see yours. New files start from 666 and folders from 777, minus the umask bits.

New files get644 rw-r--r--
New folders get755 rwxr-xr-x

The calculation runs in your browser. What you type never leaves this device.

Features

  • Checkboxes, octal and symbolic forms stay in sync both ways

  • Setuid, setgid and sticky bits, shown as s/S and t/T the way ls prints them

  • Commands in octal (chmod 755 file) and symbolic (chmod u=rwx,g=rx,o=rx file) form, with -R if you need it

  • Plain-English summary of who can do what

  • umask helper: default permissions for new files and folders

  • One-click common modes: 644, 755, 600, 700, 640, 750 and more

When you reach for chmod

Deploying a website or app

Web files usually need 644 and folders 755, with config files holding secrets at 600 or 640. Get the exact command for your server.

Making a script executable

Turn a downloaded or new shell script into one you can run with chmod 755 or chmod u+x, and see what each choice allows.

Fixing SSH key errors

SSH refuses private keys others can read. Set ~/.ssh to 700 and the key file to 600 to clear the 'permissions are too open' error.

Shared folders on a server

Use setgid on a team folder so new files keep the group, and the sticky bit so people cannot delete each other's files, as /tmp does.

Reading Unix permissions

The three digits

Each digit is the sum of read (4), write (2) and execute (1) for one class: owner, group, then everyone else. So 7 is rwx, 6 is rw-, 5 is r-x and 4 is r--. 755 means the owner can do everything while others can read and run; 644 means the owner can edit and others can only read.

Execute means something else on folders

  • On a directory, read lets you list names, write lets you create and delete files, and execute lets you enter it and reach files inside.
  • A folder with r but no x lets you see names but not open the files, which is rarely what you want.
  • That is why folders are usually 755 or 750 while files are 644 or 640.

Special bits and umask

  • A fourth leading digit sets special bits: 4 setuid, 2 setgid, 1 sticky. /tmp is 1777.
  • A capital S or T means the special bit is set without execute, which is usually a mistake.
  • umask removes bits from new files (start 666) and folders (start 777). The common 022 gives 644 files and 755 folders.

chmod Calculator - FAQ