Nfs Umask
Aug 30, 2007how do we got about setting umask for nfs? it keep putting it to 600 instead of 644...
View 1 Replieshow do we got about setting umask for nfs? it keep putting it to 600 instead of 644...
View 1 RepliesI have 2 servers, both servers have apache... I have my apache on my 2nd server create a few images into a folder... and that folder is shared with server 1... however, those images are not viewable by server 1... not sure what the umask is, but I would like it to be 0022/644 when server 2 output images into that folder...
View 8 Replies View RelatedBefore this thread happens, don't tell me to chmod the file to have execution privs. I want umask to work properly, with no seperarate chmod required.
For some reason, on every single system i've tested this on, linux, freebsd, vps, standalone server, fresh install of operating system, any time I test this, it ends up with the same issue.
Running `umask 000` should result in files created from that point on having a chmod of rwxrwxrwx. However, they always end up having a chmod of rw-rw-rw.
If I create a directory after setting the same umask setting, the directory ends up with rwxrwxrwx.
Code:
root@bonkers[/usr/local/etc/php/umask] $ umask 000
root@bonkers[/usr/local/etc/php/umask] $ touch 000
root@bonkers[/usr/local/etc/php/umask] $ mkdir d0
root@bonkers[/usr/local/etc/php/umask] $ ls -la
total 10
drwxrwxrwx 5 root wheel 512 Dec 6 03:31 .
drwxr-xr-x 4 root wheel 512 Dec 6 03:21 ..
-rw-rw-rw- 1 root wheel 0 Dec 6 03:31 000
drwxrwxrwx 2 root wheel 512 Dec 6 03:21 d0