chmod 660

chmod 660 gives rw-rw----. Read and write for the owner and group. Shared data files, sockets and devices used by a group.

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

Owner

Group

Others

Permissions

rw-rw----

Command

chmod 660 file

Chmod Calculator

chmod 660 explained

Octal660
Symbolicrw-rw----
Ownerread, write
Groupread, write
Othersno access
ls -l Shows-rw-rw----
Commandchmod 660 file
Symbolic Commandchmod u=rw,g=rw,o= file

Each digit of 660 is one class of user and adds up read (4), write (2) and execute (1). 6 for the owner is read, write; 6 for the group is read, write; 0 for the others is no access.

Read and write for the owner and group. Shared data files, sockets and devices used by a group.

On a directory, execute means permission to enter it and reach files inside; read means permission to list it. That is why directories usually have execute wherever they have read.

Questions

What does chmod 660 mean?
Owner: read, write. Group: read, write. Others: no access. In letters: rw-rw----.
Is chmod 660 safe?
Yes, for the uses described here. Nobody outside the classes given write access can change the file.
How do I apply 660 to every directory but not files?
find /path -type d -exec chmod 660 {} + (and use -type f for files only).
How do I set 660 recursively?
chmod -R 660 /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.