On Ubuntu (xenial aka 16.04) all clients show dir and file owners in all NFS4 mounted directories as nobody:nobody.
User and group database comes via sssd from ldap, both client and server use the same ldap sources/trees and getent passwd $user
, shows the correct entry ($user
is a non-local, i.e. ldap user entry, so ldap seems to work).
Users are able to write to the dirs owned by them (even if the OS shows nobody:nobody) and new files also end up with the correct ownership on the server, i.e. proper UID:GID as defined in the ldap tree. However, it is pretty weird, that Ubuntu users can't see, who owns which files. Also ssh seems to do some checks, and thus one cannot login using its authorized key method (i.e. w/o password) nor does it use any settings from ~/.ssh/* unless explicitly specified on CLI. This is a nightmare. Solaris clients have no trouble at all, so the problem must be Ubuntu/Linux related.
- /etc/idmapd.conf has the proper domain set.
- /etc/nsswitch.conf has
files [SUCCESS=return] sss
forpasswd
,group
,shadow
,services
,netgroup
,automount
andhosts
set. - /etc/default/nfs-common has
NEED_GSSD
,NEED_STATD
set to no,STATDOPTS
to ''.
Anything else I'm missing?