chmod 770 (rwxrwx---)
The owner and group have full access, and others have none. Used for directories a team shares.
rwxrwx---Who can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | ✓ |
| Group | ✓ | ✓ | ✓ |
| Others | – | – | – |
- Owner can read, write and execute.
- Group can read, write and execute.
- Others can nothing.
Commands
Set the mode
chmod 770 my-dir # same thing in symbolic form: chmod u=rwx,g=rwx,o= my-dir
In ls -l output, a file with this mode shows as -rwxrwx--- and a directory as drwxrwx---.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command