Share via


File owner is "nobody" when mounted with NFSv4.1

Question

Friday, November 2, 2012 2:30 PM

Created Anonymous NFS Share on Windows 2012 and mounted on RHEL 6.2 client. Owner for the files are showing "nobody" when mounted in with NFSv4.1, correct owner and groups are being shown as per the UID and GID provided on NFS Permission, when mounted with NFSv3.

I guess this because, with NFSv4, identity tracking has been redesigned and now uses a identity mapping daemon (idmapd). But not sure, how to fix this issue. Any setting needs to be done on Windows 2012 Storage Server side.

[root@rhel62 ~]# mount -t nfs -o minorversion=1 10.1.7.12:/ano_data /data
[root@rhel62 ~]# touch /data/test
[root@rhel62 ~]# touch /data/test1
[root@rhel62 ~]# ls -l /data
total 0
-rw-r--r-- 1 nobody nobody 0 Nov  1 01:40 test
-rw-rw-r-- 1 nobody nobody 0 Nov  1 01:44 test1
[root@rhel62 ~]#
[root@rhel62 ~]# umount /data
[root@rhel62 ~]# mount -t nfs -o vers=3 10.1.7.12:/ano_data /data
[root@rhel62 ~]# ls -l /data
total 0
-rw-r--r-- 1 cnas cnas 0 Nov  1 01:40 test
-rw-rw-r-- 1 cnas cnas 0 Nov  1 01:44 test1
[root@rhel62 ~]#
[root@rhel62 ~]# uname -a
Linux rhel62.ind.hp.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel62 ~]# cat /etc/*release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
[root@rhel62 ~]#

All replies (2)

Saturday, November 3, 2012 7:04 AM

Hello Dutta, 

With NFSv4, identity tracking has been redesigned and now uses a identity mapping daemon (idmapd).  It's crucial that server and client have access to identical account information, or idmapd cannot properly do it's job and may display ownership as "nobody" or equivalent high values.

Both the NFS server and the NFS client must run idmapd and have good idmapd.conf files.  Even when the same accounts are known to both the servers and clients, idmapd configuration problems can prevent proper ownership from being displayed.

More details you can find in http://www.novell.com/support/kb/doc.php?id=7005060

Thank you and I suggest you check above link, hope it helps you somehow.

Regards, Ravikumar P


Saturday, November 3, 2012 5:57 PM

Thank You Ravikumar, for your response.

In my case, NFS server is Windows 2012. Can you give me some idea on how to configure idmapd on Windows 2012, so that NFS server and client can have identical account information.

Thanks & Regards

Susanta