I simply want to "map by userNAME" between NFS4 client and NFS4 server, when each has different uid for a given user name, w/o having to setup Kerberos.
The situation: my Linux machine (centos 7) accesses various NFS4 servers (running centos 7)
- no Kerberos or NIS or AD available
- servers each have various dns domains (all different from my linux box' DNS domain)
- servers and my linux client have unsynchronized UIDs (each username "oracle" has different local uid)
echo N > /sys/module/nfsd/parameters/nfs4_disable_idmapping
done on server and client- name mapping daemon rpcidmapd started on both client and server
- client side /etc/idmapd.conf has static mapping for users
- mounting as nfs4 (sec=sys, as there is no centrallized Kerberos/etc) works
ls -l
shows "correct" usernames and groupnames- but permissions are ignored, I have to set world rwx to access/traverse/write files, WHY??
Background questions:
which side (client or server) should do the name to id mapping?
is my idmapd.conf on my client correct (example remote NFS4 server DNS domain is eh.loc) :
[General] Verbosity = 7 [Mapping] [Translation] Method = static [Static] oracle@eh.loc = oracle oinstall@eh.loc = oinstall dba@eh.loc = dba