Build Linux file permissions visually. Tick read, write and execute for owner, group and others, then get the numeric chmod mode, symbolic mode and safe command examples.
| Who | Read4 |
Write2 |
Execute1 |
|---|---|---|---|
| Owner | |||
| Group | |||
| Others |
644 is common for regular website files.755 is common for directories and executable scripts.600 is useful for private files that only the owner should read and write.700 is useful for private directories or scripts.777 is usually too permissive and should not be used as a quick fix.Recursive permission changes can break websites if used carelessly. A safer website pattern is usually separate commands for files and directories:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;