I'm having difficulty creating a file on an NFS share with the correct groups.
All servers in question are running linux.
When creating files on one server-NAS pair in my network (not configured by me, lets call it server A), the files appear on NAS A with uid=root gid=abc. If I try to create a file from a new server-NAS pair that I have configured (server B), the file on NAS B has uid=root gid=root.
I need to figure out how to get this to be set as gid=abc.
The /etc/fstab definitions are the same on both servers. NAS A is genuine NAS hardware (off the shelf), while NAS B is actually a linux server I set up with NFS exports defined as:
/vol *(rw,no_root_squash)
In the /etc/group file on servers A and B, I have the line
abc:x:101:postgres,xyz
But no mention of the root user in the group. I am pretty sure that server A has been configured to use the group "abc" when writing to the NAS, but I can't figure out where this has been specified. Can anyone point me in the right direction?
Setting anongid on the export definition on NAS B is not an option, as I need the config on the two servers to be identical, and this is not how NAS A is configured.
Edit:
on NAS A /etc/exports has the entry
/vol -sec=sys,rw,anon=0
On server A /proc/mounts is:
nas01:/vol /opt/vol nfs rw,noatime,vers=3,rsize=32768,wsize=32768,acregmin=60,acdirmin=60,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas01 0 0