chmod 660 (rw-rw----)
The owner and group can read and write, and others have no access. Used for files a team or service group edits together.
rw-rw----Who can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | – |
| Group | ✓ | ✓ | – |
| Others | – | – | – |
- Owner can read and write.
- Group can read and write.
- Others can nothing.
Commands
Set the mode
chmod 660 my-file # same thing in symbolic form: chmod u=rw,g=rw,o= my-file
In ls -l output, a file with this mode shows as -rw-rw---- and a directory as drw-rw----.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command