Linux file permissions

chmod 777 (rwxrwxrwx)

Owner: read, write, execute · Group: read, write, execute · Others: read, write, execute

777numeric
rwxrwxrwxsymbolic
7 · 7 · 7owner · group · others
Commands
chmod 777 filename chmod u=rwx,g=rwx,o=rwx filename chmod -R 777 folder/ # apply to a folder and everything in it

Security warning: 777 lets any user on the system modify these files. On web servers use 755 for folders and 644 for files and fix ownership with chown instead.

Change any permission with the chmod calculator.

What chmod 777 means

WhoDigitLettersCan
Owner (user)7rwxread, write, execute
Group7rwxread, write, execute
Others7rwxread, write, execute

Each digit is the sum of read (4), write (2) and execute (1).

When to use 777

Almost never appropriate — anyone can change or replace the file.

Related permissions

Questions

What does chmod 777 mean?

chmod 777 sets the permissions to rwxrwxrwx: the owner can read, write, execute, the group can read, write, execute and others can read, write, execute.

When should I use 777?

Almost never appropriate — anyone can change or replace the file.

What is 777 in symbolic form?

777 is rwxrwxrwx (shown by ls -l as -rwxrwxrwx for a file or drwxrwxrwx for a folder). The symbolic chmod command is chmod u=rwx,g=rwx,o=rwx file.