chmod 740 — what rwxr----- means
740
rwxr-----
Owner has full access; the group can read only; everyone else has no access.
Note: this grants group or shared write access — fine for team directories, but make sure that is what you intend.
Permission breakdown
When to use 740
A script or config the owner runs and edits, while a trusted group needs to read it (for review or auditing) but must not change it. Others are locked out entirely.
Set it with chmod
Apply this permission to a file:
chmod 740 filename
Or apply it recursively to a directory and everything inside it:
chmod -R 740 directory/
Other common permissions
Or build any permission with the interactive chmod calculator.