You can also do chmod -R u=rwX,g=rX,o=rX /some/dir
. See man chmod
for explanation.
I was going to submit a patch months ago to make the mode argument in the file, copy, etc. modules take symbolic args as above, but I got sidetracked.
I’ll clean that patch up and put in a pull request by the end of the week.