chmod 666 — rw-rw-rw-

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

666
rw-rw-rw-
Owner6
rw-
Group6
rw-
Others6
rw-
Special bits
chmod 666 filename
chmod -R 666 /path/to/dir

What this means

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

What chmod 666 allows

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

Everyone can read and write, nobody can execute. Typical for device files like /dev/null; for normal files it's as risky as 777 without execute.

Every user on the system can modify this. Prefer giving write access through the owner or a group.

Commands

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

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 666 mean?

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

What is the symbolic form of chmod 666?

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

← Chmod calculator

Common chmod permissions explained

ToolNinja