File permissions · modechmod 644 — rw-r--r--
What chmod 644 (rw-r--r--) means, who is allowed to do what, and when these permissions are used: an ordinary file: the owner edits, everyone else reads.
Open in the calculator01
What breaks
02
Easily confused with
640rw-r-----
outsiders cannot read at all — for a config a service reads under its own group.
chmod 640 →03
Commands for this case
find . -type f -exec chmod 644 {} +
apply 644 to files only, leaving directories alone
chmod 644 index.html style.css
the ordinary case of a few files
Work out other permissions
The calculator opens on this mode: checkboxes, octal and symbolic notation, an ls -l line and the ready command.
Updated