File permissions · modechmod 755 — rwxr-xr-x
What chmod 755 (rwxr-xr-x) means, who is allowed to do what, and when these permissions are used: a directory, a script, a file served by a web server.
Open in the calculator01
What breaks
02
Easily confused with
775rwxrwxr-x
the group writes too — right for a shared team directory, needless for site files.
chmod 775 →03
Commands for this case
find . -type d -exec chmod 755 {} +
755 for directories recursively, and for directories only: `chmod -R 755` would make every file executable too, so files get 644 in a separate command
chmod 755 deploy.sh
make a script runnable — without x it answers «Permission denied»
Work out other permissions
The calculator opens on this mode: checkboxes, octal and symbolic notation, an ls -l line and the ready command.
Updated