Re: NFS4 home mounts owned by nfsnobody

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-06-24 at 00:10 -0400, Braden McDaniel wrote:
> On Tue, 2009-06-23 at 10:13 +0100, John Austin wrote:
> > On Mon, 2009-06-22 at 18:38 -0400, Braden McDaniel wrote:
> > > I'm trying to set up automounting of home directories using NFS4 and 
> > > autofs.  I seem to have it working except that all of the files in the 
> > > mounted directories have their owner and group set to "nfsnobody".
> > > 
> > > /etc/exports on the server looks like this:
> > > 
> > > /exports *(ro,fsid=0)
> > > /exports/share *(rw,sync,nohide)
> > > /exports/home *(rw,insecure,sync,nohide)
> > > 
> > > /etc/auto.home on the client looks like this:
> > > 
> > > braden		-fstype=nfs4	hinge:/home/braden
> > > 
> > > 
> > > -- 
> > > Braden McDaniel                      e-mail: <braden@xxxxxxxxxxxxx>
> > > <http://endoframe.com>               Jabber: <braden@xxxxxxxxxx>
> > > 
> > 
> > Hi
> > 
> > I had the same problem (F11)
> > The cure for me was to ensure that the name of the local machine (naxos) is
> > available to "mount"
> > Putting the name in /etc/hosts on naxos does the job
> > 
> > naxos ~ 2# cat /etc/hosts
> > 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 naxos
> > ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
> > 
> > It is not good enough that hostname is set
> 
> Are you quite certain that's what did it for you? This doesn't appear to
> be working for me. :-/
> 
> > My advice would be to reboot after adding the name to /etc/hosts
> > (assuming its missing) I wasted hours stopping and starting rpcidmapd type services
> > before discovering I had fixed the problem in the first 5 minutes
> > but that a clean restart was needed !
> > 
> > /etc/host.conf has changed in F11 I played with this as
> > well but don't think its relevant
> > multi on
> > order hosts,bind
> 
> That appears to be the default in F11.
> 
> > ---------------------------------------------------
> > In case the problem is on the server side (maui) Centos 5.3
> > my files look like this
> > 
> > maui.jaa.org.uk ~ 1# cat /etc/exports
> > /exports                148.197.29.0/24(rw,insecure,sync,wdelay,no_subtree_check,no_root_squash,fsid=0)
> > /exports/global 148.197.29.0/24(rw,insecure,sync,wdelay,no_subtree_check,nohide,no_root_squash)
> > /exports/home   148.197.29.0/24(rw,insecure,sync,wdelay,no_subtree_check,nohide,no_root_squash)
> > ----------------------------------------
> > maui.jaa.org.uk ~ 2# cat /etc/fstab
> > ...
> > LABEL=global_maui               /global                 ext3    defaults        1 2
> > LABEL=boot_maui                 /boot                   ext3    defaults        1 2
> > ...
> > /home                           /exports/home           none     bind    0 0
> > /global                         /exports/global         none     bind    0 0
> > ---------------------------------------
> > maui.jaa.org.uk ~ 4# cat /etc/auto.master
> > ...
> > /home   auto.home
> > /-      auto.direct
> > --------------------------------------
> > maui.jaa.org.uk ~ 4# cat /etc/auto.home
> > #*      -fstype=nfs     148.197.29.5:/exports/home/&
> > *       -fstype=nfs4,rsize=32768,wsize=32768    148.197.29.5:/home/&
> > --------------------------------------
> > maui.jaa.org.uk ~ 5# cat /etc/auto.direct
> > #/global    -fstype=nfs  148.197.29.5:/exports/global
> > /global    -fstype=nfs4  148.197.29.5:/global
> > 
> > Note the # commented nfs3 lines
> 
> At this point I've duplicated everything above except I'm still using
> host names instead of IP addresses... and still no luck.  I guess I'll
> try that next.
> 
> -- 
> Braden McDaniel <braden@xxxxxxxxxxxxx>
> 

Hi again

Just run a couple of checks with one of my machines

1. Removed name from /etc/hosts and rebooted
   nfsnobody appears everywhere on an nfs mount

Error messages such as these in /var/log/messages

Jun 24 08:56:47 monk rpc.idmapd[1501]: nss_getpwnam: name 'ja@localdomain' does not map into domain 'jaa.org.uk'

2. Replaced name in /etc/hosts and rebooted - problems disappear

I assume that ja@localdomain rather than ja@xxxxxxxxxx is being passed to rpc.idmapd which it is unhappy with
The entry in /etc/hosts definitely fixes this for me
I guess your problem must be different

------------------------------------------------------
Is  rpcidmapd/rpc.idmapd  running correctly ?

naxos ~ 15# service rpcidmapd status
rpc.idmapd (pid 1702) is running...

naxos ~ 11# ps -ef|grep -i rpc
rpc       1646     1  0 Jun20 ?        00:00:00 rpcbind
rpcuser   1659     1  0 Jun20 ?        00:00:00 rpc.statd
root      1690     2  0 Jun20 ?        00:00:00 [rpciod/0]
root      1692     2  0 Jun20 ?        00:00:00 [rpciod/1]
root      1693     2  0 Jun20 ?        00:00:15 [rpciod/2]
root      1694     2  0 Jun20 ?        00:00:00 [rpciod/3]
root      1702     1  0 Jun20 ?        00:00:00 rpc.idmapd
ja        4918 30262  0 09:07 pts/1    00:00:00 grep -i rpc

Good luck !

John





-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux