vim /etc/idmapd.conf
add Domain=example.com
restart the services
/etc/init.d/rpcidmapd restart
and /etc/init.d/nfs restart
http://lfhck.com/question/100876/centos-6--ldap--nfs-file-ownership-is-stuck-on-nobody
Solved!
I happened to notice this line in
/var/log/messages
on my NFS server when I was attempting to mount an export from the remote client:Feb 28 15:54:02 storage1 rpc.idmapd[1651]: nss_getpwnam: name 'nobody' does not map into domain 'localdomain'
This caused me to look at the first few lines of
/etc/idmapd.conf
:[General]
#Verbosity = 0
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
#Domain = local.domain.edu
I then added
Domain=subdomain.mycompany.com
under the commented out "Domain" line. Saved, exited and then ran/etc/init.d/rpcidmapd restart
and /etc/init.d/nfs restart
.Ubuntu
vim /etc/idmapd.conf
add Domain=example.com
reboot
No comments:
Post a Comment