What does chmod 775 mean?
chmod 775 gives owner and group full, others read/execute. Like 755 but the group can also write. Common for shared upload or cache directories where the web server and a deploy user share a group.
| Who | Digit | Symbolic | Permissions |
|---|---|---|---|
| Owner (user) | 7 | rwx | read, write, execute |
| Group | 7 | rwx | read, write, execute |
| Others | 5 | r-x | read, execute |
Each digit is the sum of read (4), write (2) and execute (1). In ls -l the file shows as -rwxrwxr-x and a directory as drwxrwxr-x.
How to use chmod 775
# one file or directory
chmod 775 filename
# the same permissions in symbolic form
chmod u=rwx,g=rwx,o=rx filename
# a directory and everything inside it
chmod -R 775 directory/
# only directories (keep files separate)
find path/ -type d -exec chmod 775 {} +
Need a different combination? Tick the boxes in the chmod calculator to get the octal and symbolic values instantly.
Preguntas frecuentes
What does chmod 775 do?
What is 775 in symbolic notation?
rwxrwxr-x, or chmod u=rwx,g=rwx,o=rx as a symbolic chmod command.