chmod 777 (rwxrwxrwx)
What chmod 777 does, who gets which permissions, and when to use it — with the exact commands.
| Read (4) | Write (2) | Execute (1) | |
|---|---|---|---|
| Owner | ✔ read | ✔ write | ✔ execute |
| Group | ✔ read | ✔ write | ✔ execute |
| Others | ✔ read | ✔ write | ✔ execute |
Notes
When you'd use 777: Everyone can do everything. Never correct on a permanent basis — if something only works with 777, the real problem is ownership (fix with chown).
Unix permissions are octal digits — owner, group, others — where read=4, write=2, execute=1, summed per digit. An optional leading digit holds setuid (4), setgid (2) and the sticky bit (1). On a directory, "execute" means permission to enter it and reach files inside.
Other values: 400 · 444 · 500 · 555 · 600 · 640 · 644 · 664 · 666 · 700 · 711 · 750 · 755 · 770 · 775 · 1777 · 2755 · 4755
Frequently asked questions
What does chmod 777 mean?
chmod 777 sets the permission rwxrwxrwx. The owner can read and write and execute; Group members can read and write and execute; Everyone else can read and write and execute.
What is the symbolic notation for chmod 777?
rwxrwxrwx — three triplets (owner, group, others) of read/write/execute flags.
How do I apply chmod 777 to a whole directory?
Run chmod -R 777 yourdir to apply it recursively. Be careful: files and directories usually should not share the same mode (directories need execute to be entered, regular files usually should not be executable).
Is chmod 777 safe?
No. 777 makes a file or directory writable by every user on the system. If something only works with 777, the real issue is almost always ownership — fix it with chown instead.