chmod 777 (rwxrwxrwx)
Everyone can read, write and run. Avoid it: any user or compromised process on the machine can change or replace the file.
rwxrwxrwxWho can do what
| Read | Write | Execute | |
|---|---|---|---|
| Owner | ✓ | ✓ | ✓ |
| Group | ✓ | ✓ | ✓ |
| Others | ✓ | ✓ | ✓ |
- Owner can read, write and execute.
- Group can read, write and execute.
- Others can read, write and execute.
- Warning: anyone on the system can write to this.
Commands
Set the mode
chmod 777 my-file # same thing in symbolic form: chmod u=rwx,g=rwx,o=rwx my-file
In ls -l output, a file with this mode shows as -rwxrwxrwx and a directory as drwxrwxrwx.
Try a different mode
| Read | Write | Execute | Special | |
|---|---|---|---|---|
| Owner | ||||
| Group | ||||
| Others |
Octal Symbolic
Command