Files mounted over NFSv4 are owned by 4294967294, UIDs and GIDs match

Solution 1:

read here http://blather.michaelwlucas.com/archives/796

If the NFSv4 client and server domain names doesn’t match,all the usernames will show up as “nobody.”

  1. edit /etc/idmapd.conf and set Domain on server and client to the "localdomain"

    [General]

    Domain = localdomain

    [Translation]

    Method = nsswitch

  2. change the /etc/default/nfs-common file (on both your server and client): set NEED_IDMAPD= yes

  3. start idmapd service

Solution 2:

As explained in UID /GID with NFS and ZFS, NFSv4 doesn't use UIDs. I was having a similar problem and was able to work around it by using NFSv3. This just entails adding -o vers=3 to the mount command. Of course, if you do need to use NFSv4 this response won't be of much use to you.

Solution 3:

This is a user id mapping problem. For some reason the system is using the "nobody" account instead of the true account ids. Check your squashing options and your idmapd.conf file.

Here is a thread I found that discusses the problem, this links to the post of interest, http://www.mail-archive.com/[email protected]/msg03303.html.

FYI, 4294967294 is -2, if treated as a 32-bit signed integer. -1 or -2 are used on various Linux distros for the nobody UID and nogroup GID (in the passwd file the highest 16 bit unsigned number, 65535, is generally used).

Solution 4:

You need to change the /etc/default/nfs-common file (on both your server and client): set NEED_IDMAPD to yes.

At least this helped for me.