What does chmod 770 mean?
chmod 770 gives owner and group full access. Owner and group can read, write and execute; others are locked out. For shared project directories where a team needs full access.
| Who | Digit | Symbolic | Permissions |
|---|---|---|---|
| Owner (user) | 7 | rwx | read, write, execute |
| Group | 7 | rwx | read, write, execute |
| Others | 0 | --- | no access |
Each digit is the sum of read (4), write (2) and execute (1). In ls -l the file shows as -rwxrwx--- and a directory as drwxrwx---.
How to use chmod 770
# one file or directory
chmod 770 filename
# the same permissions in symbolic form
chmod u=rwx,g=rwx,o= filename
# a directory and everything inside it
chmod -R 770 directory/
# only directories (keep files separate)
find path/ -type d -exec chmod 770 {} +
Need a different combination? Tick the boxes in the chmod calculator to get the octal and symbolic values instantly.
Häufige Fragen
What does chmod 770 do?
What is 770 in symbolic notation?
rwxrwx---, or chmod u=rwx,g=rwx,o= as a symbolic chmod command.