I have many (openSUSE 11.2) Linux clients here connected to an NFS server using NFS4 shares and an NIS.
The (well known) problem is that right after bootup all files and directories belong to user nobody and group nobody.
I searched the net and found many suggestions, here are the interesting configs I modified:
/etc/nsswitch.conf:
passwd: compat nis
group: compat nis
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files dns
services: files nis
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files nis
publickey: files
bootparams: files
automount: files
aliases: files nis
shadow: compat
/etc/idmapd.conf
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = ourdomain
[Mapping]
Nobody-User = nobody
Nobody-Group = nobody
[Translation]
Method=nsswitch
The strange thing is that when I manually restart the NFS client services via /etc/init.d/nfs the UIDs/GIDs suddenly are the right ones.
Any suggestion what to try next? The problem does not appear when using NFS3 to mount those shares.
Thanks in advance,
lynix