2
votes
1answer
74 views

How to set umask so that directories to be `r-x` and files to be `---`

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 ...
0
votes
4answers
1k views

umask is not working for directories

I have an odd problem with umask. My current setting is: $ umask 0022 $ umask -S u=rwx,g=rx,o=rx This only works for files though and not directories: $ touch abc $ ll abc 0 -rw-rw-rw- 1 user1 ...
2
votes
1answer
809 views

No effect of umask and chmod on mounted drives

The windows drives are mounted at boot-time using pysdm. The setting were nls=iso8859-1,users,umask=002,sync,user,dirsync,uid=mtk When I try to change the permission of files using chmod, I don't ...
5
votes
2answers
5k views

How to set umask for a system-user?

Is it possible to set the umask for a system-user (created with useradd --system username)?
2
votes
1answer
162 views

Permissions UMASK for New Directories

I have a directory "dir1" who's owner is "owner1" and it has 775 permissions. Another user in the same group as "owner1" is called "owner2" Whenever a file is written to "dir1" by "owner2" I need ...
5
votes
4answers
3k views

Downsides of umask 077?

What are the cons, for having a restrictive umask of 077? A lot of distros (I believe all, except Red Hat? ) have a default umask of 022, configured in /etc/profile. This seems way too insecure for a ...