[CentOS] NFS Mount: files owned by nobody

Mon Mar 17 22:10:28 UTC 2014
Lists <lists at benjamindsmith.com>

This is one of those simple-been-doing-this-forever things that, for 
some reason, has me stumped today.

When I try to NFS (v4) mount a directory, the user/group ownership shows 
up as user "nobody" even though /etc/passwd has values for the correct 
user names. How do I get it to mount with the correct user IDs?

Hume is the server, running CentOS 6, all updates applied, maybe a week 
or two ago
Bender is the client, running CentOS 6, all updates applied, maybe a 
week or two ago.

### HUME ###

Hume has a backup saved in /home/spfs.450, the directory that I'm trying 
to export.
[root at hume ~]# ll /home/spfs.450/
drwxr-xr-x  3 apache apache  3 Oct  8  2009 y.spfs
drwxr-xr-x  3 apache apache  3 Feb  1  2010 yts.spfs
--SNIP--

Hume is exporting with /etc/exports
/home/spfs.450 
192.168.254.0/255.255.255.0(rw,async,no_subtree_check,mp,no_acl,insecure,no_root_squash)

Hume has appropriate /etc/passwd entries:
[root at hume ~]# grep -i apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin

To be sure, the files are numerically id'd as 48:
[root at hume ~]# ls -ln /home/spfs.450/
drwxr-xr-x  3 48 48  3 Oct  8  2009 y.spfs
drwxr-xr-x  3 48 48  3 Feb  1  2010 yts.spfs
--SNIP--



Nothing shows in /var/log/messages either when I enable the export or 
when it's mounted by bender.
[root at bender ~]# tail -f /var/log/messages


### BENDER ###

Bender is mounting the backup with the following command:
[root at bender ~]# /bin/mount -t nfs 192.168.254.9:/home/spfs.450 
/home/spfs.450

Files show up with the wrong user name.
[root at bender ~]# ll /home/spfs.450/
drwxr-xr-x  3 nobody nobody  3 Oct  8  2009 y.spfs
drwxr-xr-x  3 nobody nobody  3 Feb  1  2010 yts.spfs
--SNIP--

Bender as appropriate /etc/passwd entries:
[root at bender ~]# grep -i apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin

Nothing shows in /var/log/messages when I mount the export on Bender.
[root at bender ~]# tail /var/log/messages