chmod 750 (rwxr-x---) explained

The owner can read, write and execute; the group can read and execute; others have no access.

Octal
750
Symbolic
rwxr-x---
ls -l shows
-rwxr-x---

Who can do what

Class Read (4) Write (2) Execute (1) On a directory
Owner (u)YesYesYesList the files. Enter it and open files inside. Create, rename and delete files.
Group (g)YesNoYesList the files. Enter it and open files inside.
Others (o)NoNoNoNo access.

When to use chmod 750

Gives the owner full access, the group read and execute, and nothing to others.

Useful for scripts and directories that a service group must run or read but the rest of the system should not see, such as application code on a shared server.

Commands

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

chmod 750 path/to/file
chmod u=rwx,g=rx,o= 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 750 {} +

chmod -R 750 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