Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFSv4: nss_getpwnam: name 'root@localdomain' does not map
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Wed May 02, 2012 5:52 pm    Post subject: NFSv4: nss_getpwnam: name 'root@localdomain' does not map Reply with quote

Hi there,

I think I haven't understood an important thing in NFSv4. I try to mount the root of another machine for cross-compiling reasons, but I get always:
Code:
nss_getpwnam: name 'root@localdomain' does not map into domain 'blechnet'


The big question is: Where is this localdomain set?

My config files (identical on both machines):
/etc/conf.d/net:
dns_domain_lo="blechnet"
nis_domain_lo="blechnet"


/etc/idmapd.conf:
Domain = blechnet
[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

(The LDAP stuff I have deactivated)

/etc/hosts:
127.0.0.1       localhost faultier faultier.blechnet


/etc/exports (Server):
/export/root            192.168.109.0/24(rw,fsid=1,nohide,insecure,no_subtree_check,async,no_root_squash)

- fsid has to be set, because / is outside of /exports
- / is mounted to /export/root

/etc/fstab (Client):
miniding:/root                  /mnt/miniding           nfs4    noauto,rw,intr,noatime,nodiratime,hard,rsize=32768,wsize=32768  0 0


When I replace every blechnet with localdomain in these files then it works like a charm. But I guess it's not intended that every domain in the world should be named localdomain. So where's the hidden secret to choose a different domain?
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Sun May 20, 2012 3:00 am    Post subject: Do you use DNS for resolution? Reply with quote

My first guess would have been the [general] domain setting in /etc/idmapd.conf since that's the thing I had to change switching from nfs3 to nfs4 a while back. Do you use dns service for host mapping or just local files? Check your /etc/resolv.conf and /etc/nsswitch.conf files for settings. The whole thing boils down to what getdomainname returns:

Code:
man 2 getdomainname
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum