chmod 777 — rwxrwxrwx

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

777
rwxrwxrwx
Owner7
rwx
Group7
rwx
Others7
rwx
Special bits
chmod 777 filename
chmod -R 777 /path/to/dir

What this means

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

What chmod 777 allows

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

Everyone can read, write and execute. Almost never the right answer: any user or compromised process can change or replace the file. Fix ownership (chown) or group access (775/664) instead.

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

Commands

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

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

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

What is the symbolic form of chmod 777?

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

← Chmod calculator

Common chmod permissions explained

ToolNinja