chmod u=rwx,g=rx,o=r <file> # Set the rights to -rwxr-xr--
chmod o-r <file> # Remove 'read' from others
chmod g+w <file> # Add 'write' to group
chmod -R 754 <directory> # Set the rights to -rwxr-xr-- recursive
┌─────┬─────┬─────┐
│ r-- │ -w- │ --x │
│ 4 │ 2 │ 1 │
├─────┼─────┼─────┼─────┐
│ rw- │ r-x │ -wx │ rwx │
│ 6 │ 5 │ 3 │ 7 │
└─────┴─────┴─────┴─────┘