chmod 775 (rwxrwxr-x)
The owner and group have full access, and others can read and run. The default for new directories when the umask is 002.
rwxrwxr-xWho can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | ✓ |
| Group | ✓ | ✓ | ✓ |
| Others | ✓ | – | ✓ |
- Owner can read, write and execute.
- Group can read, write and execute.
- Others can read and execute.
Commands
Set the mode
chmod 775 my-dir # same thing in symbolic form: chmod u=rwx,g=rwx,o=rx my-dir
In ls -l output, a file with this mode shows as -rwxrwxr-x and a directory as drwxrwxr-x.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command