chmod 777

chmod 777 gives rwxrwxrwx. Full access for everyone. Almost never right: any user or process on the server can change or replace the file.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Owner

Group

Others

Permissions

rwxrwxrwx

Anyone Can Write

Command

chmod 777 file

Chmod Calculator

chmod 777 explained

Octal777
Symbolicrwxrwxrwx
Ownerread, write, execute
Groupread, write, execute
Othersread, write, execute
ls -l Shows-rwxrwxrwx
Commandchmod 777 file
Symbolic Commandchmod u=rwx,g=rwx,o=rwx file

Each digit of 777 is one class of user and adds up read (4), write (2) and execute (1). 7 for the owner is read, write, execute; 7 for the group is read, write, execute; 7 for the others is read, write, execute.

Full access for everyone. Almost never right: any user or process on the server can change or replace the file.

777 lets every user on the server write to the file. On a web server that is how one compromised site or plug-in spreads to others. If something only works with 777, change the owner with chown instead.

Questions

What does chmod 777 mean?
Owner: read, write, execute. Group: read, write, execute. Others: read, write, execute. In letters: rwxrwxrwx.
Is chmod 777 safe?
Not for ordinary files: anyone on the server can change them.
How do I apply 777 to every directory but not files?
find /path -type d -exec chmod 777 {} + (and use -type f for files only).
How do I set 777 recursively?
chmod -R 777 /path. Be careful: this gives files and directories the same mode, which is rarely what you want; the find command above is safer.

Run servers for other people?

Frabs stops the abuse their VMs send out, and keeps your network off blocklists.