chmod 555 (r-xr-xr-x) explained

The owner can read and execute; the group can read and execute; others can read and execute.

Octal
555
Symbolic
r-xr-xr-x
ls -l shows
-r-xr-xr-x

Who can do what

Class Read (4) Write (2) Execute (1) On a directory
Owner (u)YesNoYesList the files. Enter it and open files inside.
Group (g)YesNoYesList the files. Enter it and open files inside.
Others (o)YesNoYesList the files. Enter it and open files inside.

When to use chmod 555

Lets everyone read and execute, and nobody write, not even the owner.

Used for programs and directories that must not change, such as read-only system binaries. The owner (and root) can still change the mode back to make edits.

Commands

Set the mode with octal digits, or with the equivalent symbolic form:

chmod 555 path/to/file
chmod u=rx,g=rx,o=rx path/to/file

To apply it to every directory below a folder (and not to the files), combine it with find:

find path/to/folder -type d -exec chmod 555 {} +

chmod -R 555 changes files and directories alike, which is rarely what you want: directories usually need execute, regular files usually should not have it.

Work out any mode in the Chmod Calculator