NFS default to 777

Posted by ipengineer on Server Fault See other posts from Server Fault or by ipengineer
Published on 2014-06-05T19:00:23Z Indexed on 2014/06/05 21:27 UTC
Read the original article Hit count: 118

Filed under:
|
|
|

I have an NFS share. This share is shared between several different applications. Our web server is running PHP and when it creates directories it is not setting the permissions correctly so it cannot write to the directory once created. How can I mount this NFS share to where PHP has full read/write access? Below is the directory that has been created along with the media server export options and the mount options on the web server. Ideally I could set the permissions on /opt/mount and whatever group/user is on that directory when I mount to that point the share assumes those permissions.

dr----x--t. 2 nobody nobody 4096 Jun  5  2014 user_2

Mount output:

media.dc1:/home/fs_share on /opt/mount type nfs (rw,vers=4,addr=10.10.20.127,clientaddr=10.10.20.42)

Exports file from media server:

/home/fs_share     10.10.20.0/255.255.255.0(rw,sync,no_root_squash)

© Server Fault or respective owner

Related posts about centos

Related posts about php