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
link|improve this question
What does /etc/exports look like on NAS A? What does grep 'NAS A' /proc/mounts look like on server A? – James Jan 26 '10 at 18:20
Just updated the post with a response to your question -- the NAS has doesn't have a proper shell, so I thought I couldn't get at /etc/exports, but it turns out that the / directory is mounted as an NFS share. – Symmetric Jan 29 '10 at 12:33
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.