chmod 644 — rw-r--r--

What chmod 644 allows, when to use it, and the calculator pre-filled with it — toggle any box to compare.

644
rw-r--r--
Owner6
rw-
Group4
r--
Others4
r--
Special bits
chmod 644 filename
chmod -R 644 /path/to/dir

What this means

Owner can read, write. Group can read. Others can read.

What chmod 644 allows

WhoReadWriteExecute
Owner✓✓—
Group✓——
Others✓——

The default for regular files — HTML, CSS, config files, images. The owner can edit; everyone else can only read.

Commands

chmod 644 fileset it on one file or directory
chmod u=rw,g=r,o=r filethe same thing in symbolic form
chmod -R 644 dir/recursively — careful: it applies to files and directories alike
ls -l filecheck the result: -rw-r--r-- (a directory shows drw-r--r--)

On a directory, read lets you list it, write lets you create and delete entries, and execute lets you enter it and open what's inside. That's why directories usually get 755 or 750 while files get 644 or 640.

Frequently asked

What does chmod 644 mean?

Owner: read, write. Group: read. Others: read. In ls -l it shows as rw-r--r--.

What is the symbolic form of chmod 644?

chmod u=rw,g=r,o=r file — it sets exactly the same permissions as chmod 644.

← Chmod calculator

Common chmod permissions explained

ToolNinja