What does chmod 660 mean?
chmod 660 gives owner and group read/write. Owner and group can both edit, others have no access. Typical for shared files in a team directory, or files written by a service user and an admin in the same group.
| Who | Digit | Symbolic | Permissions |
|---|---|---|---|
| Owner (user) | 6 | rw- | read, write |
| Group | 6 | rw- | read, write |
| Others | 0 | --- | no access |
Each digit is the sum of read (4), write (2) and execute (1). In ls -l the file shows as -rw-rw----.
How to use chmod 660
# one file or directory
chmod 660 filename
# the same permissions in symbolic form
chmod u=rw,g=rw,o= filename
# a directory and everything inside it
chmod -R 660 directory/
# only regular files
find path/ -type f -exec chmod 660 {} +
Need a different combination? Tick the boxes in the chmod calculator to get the octal and symbolic values instantly.
Preguntas frecuentes
What does chmod 660 do?
What is 660 in symbolic notation?
rw-rw----, or chmod u=rw,g=rw,o= as a symbolic chmod command.