I need to mount a directory on a Windows Server 2012 system with rw access for local user apache. If I mount with defaults:
server2012:/sharedir /appfolder nfs defaults
The resulting permissions are:
drwx------. 2 4294967294 4294967294 64 Mar 7 13:40 appfolder
Apache is not able to read or write to this folder.
Setting uid/gid in fstab results in:
[~]# mount /appfolder mount.nfs: an incorrect mount option was specified
If I try to change permissions on /appfolder as root, I get
[~]# chown -R apache:apache /appfolder/ chown: changing ownership of ‘/appfolder’: Permission denied
What do I need to do to either mount the Windows NFS share as apache, or change permissions to apache after the fact?