chmod 664 (rw-rw-r--)
The owner and group can read and write, and others can read. The default for new files when the umask is 002.
rw-rw-r--Who can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | – |
| Group | ✓ | ✓ | – |
| Others | ✓ | – | – |
- Owner can read and write.
- Group can read and write.
- Others can read.
Commands
Set the mode
chmod 664 my-file # same thing in symbolic form: chmod u=rw,g=rw,o=r my-file
In ls -l output, a file with this mode shows as -rw-rw-r-- and a directory as drw-rw-r--.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command