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 group1 0 Dec 12 11:39 abc $ mkdir def $ ll -d def 8.0K drwxrwxrwx+ 2 user1 group1 4.0K Dec 12 2012 def
Can anybody suggest why umask is not working for the directory? Any help is appreciated!
This is a new Centos linux system.
Edit: thanks for the comments. As some have pointed out, this doesn't work for files either.
Extra information: This problem only seems to occur on the home directory which is mounted over NFS, and not on local directories. Could NFS be causing the problem somehow?