chmod 770 — what rwxrwx--- means

770 rwxrwx---

Owner and group get full read, write, and execute; everyone else gets nothing.

Permission breakdown

When to use 770

Common mistakes & gotchas

770 vs the alternatives

Set it with chmod

Apply this permission to a single file:

chmod 770 filename

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

chmod -R 770 directory/

The same thing in symbolic form:

chmod u=rwx,g=rwx,o= filename

Frequently asked questions

What does chmod 770 mean?

chmod 770 sets rwxrwx---: the owner and the group can read, write, and execute; all other users get no access at all. It's the standard mode for group-private directories and shared tools.

Is chmod 770 safe?

It's reasonably safe for group collaboration as long as the owning group is small and trusted — others are fully locked out. The risk lives in group membership: a broad group makes 770 nearly as open as world access.

What's the difference between 770 and 750?

770 (rwxrwx---) gives the group write access; 750 (rwxr-x---) gives the group read and execute but not write. Use 770 when the team must create or edit files, 750 when they should only read and run.

Why use the setgid bit with a 770 directory?

Setgid (2770) makes new files and subdirectories inherit the directory's group rather than the creator's primary group. Without it, files a teammate creates may carry the wrong group and become inaccessible to the rest of the team.

Other common permissions

Or build any permission with the interactive chmod calculator.