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.
r-x
and files to be---
for others using umask. – Marcus Thornton May 27 '14 at 13:07chmod 600 foo.bar
? I know that's not using umask, but it works. – Jonathan E. Landrum May 27 '14 at 13:10umask
but notchmod
. – Marcus Thornton May 28 '14 at 09:30