I have an NFSv4 server (CentOS). I want to export a particular directory to two different machines (one CentOS and one Ubuntu), where users of the same uid and gid need read-write access to the mounted directory. The GID and UID are the on the clients are the same as on the server, but the user names are different.
When I try using gid=,uid=
in the /etc/fstab
I get mount.nfs: an incorrect mount option was specified. messages in /var/log/messages
are
nfsidmap[12817]: nss_getpwnam: name 'apprepo' not found in domain 'sagrid.ac.za'
apprepo
is the user name which owns the files on the server. sagrid.ac.za
is of course the domain of our machines.