chmod 664 — rw-rw-r--

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

664
rw-rw-r--
Owner6
rw-
Group6
rw-
Others4
r--
Special bits
chmod 664 filename
chmod -R 664 /path/to/dir

What this means

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

What chmod 664 allows

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

Shared files that a team edits together: the owner and group can write, others can read.

Commands

chmod 664 fileset it on one file or directory
chmod u=rw,g=rw,o=r filethe same thing in symbolic form
chmod -R 664 dir/recursively — careful: it applies to files and directories alike
ls -l filecheck the result: -rw-rw-r-- (a directory shows drw-rw-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 664 mean?

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

What is the symbolic form of chmod 664?

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

← Chmod calculator

Common chmod permissions explained

ToolNinja