chmod 755 (rwxr-xr-x)
The owner can read, write and run, and everyone else can read and run. The default for directories, scripts and programs.
rwxr-xr-xWho can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | ✓ |
| Group | ✓ | – | ✓ |
| Others | ✓ | – | ✓ |
- Owner can read, write and execute.
- Group can read and execute.
- Others can read and execute.
Commands
Set the mode
chmod 755 my-file # same thing in symbolic form: chmod u=rwx,g=rx,o=rx my-file
In ls -l output, a file with this mode shows as -rwxr-xr-x and a directory as drwxr-xr-x.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command