I am on Ubuntu Server, one server running nfs-kernel-server, and the other mounting the NFS export. On the client, when I use ls -l
or stat
, everything shows as nobody:nogroup, but the actual permissions are used/respected.
Is this normal? If so, why is this the case?
If you're using NFSv4, it might be rpc.idmapd that's either missing, not running or incorrectly configured. It needs to contain correct domains and realms. You can also set the default nobody user to something else if you'd like. See idmapd.conf .
Please specify protocol version and export options next time, so that the answer may be more relevant :-)
I upgraded from Jaunty 9.04 to Precise 12.04.
Precise seems to use NFSv4 as default. I used ages finding out this, -- the fix was for me to change fstab on every client:
to:
And now the users and groups are shown.
If you are really using nfsv4 and wanting to do that, this is obviously not your fix, but others might search, come to this question and be happy with this answer :-)
yes, by default nfs server has root_squash on which makes client access nobody:nogroup. you can turn that off (less security) if you want during the export.