chmod 660 — what rw-rw---- means

660 rw-rw----

The owner and group can read and write; others have no access.

Permission breakdown

When to use 660

Common mistakes & gotchas

660 vs the alternatives

Set it with chmod

Apply this permission to a single file:

chmod 660 filename

Or apply it recursively to a directory and everything inside it:

chmod -R 660 directory/

The same thing in symbolic form:

chmod u=rw,g=rw,o= filename

Frequently asked questions

What does chmod 660 mean?

chmod 660 sets permissions to rw-rw----: the owner and the group can both read and write, and others have no access at all. It is the standard mode for sensitive files that a trusted group edits together.

When should I use 660 instead of 664?

Use 660 when the shared file is sensitive and outsiders must not even read it. Use 664 when public read access is acceptable. The difference is whether 'others' get read or nothing.

Is 660 secure?

It hides the file from everyone outside the group, which is good — but every group member can read AND write it. It is only as secure as the group membership, so keep that group small and audited.

Why doesn't another user in my team get access with 660?

The file's group is probably wrong. 660 grants access to the file's group, so that must be your shared team group, not the owner's personal login group. Fix it with chgrp before relying on 660.

Other common permissions

Or build any permission with the interactive chmod calculator.