I want to set the default permissions for newly created directories to have r-x for others and those of newly created files (non-directory files) to have ---.
If I set the umask to 2, directory permissions get r-x but files' get r--.
I couldn't find any way to achieve what I want with umask.
Ultimately, I want others to be able to traverse the directories but not to read the content of the files. I think that is a very reasonable demand but eventually there seems to be no such setting.