NFS4 home mounts owned by nfsnobody
Braden McDaniel
braden at endoframe.com
Wed Jun 24 04:10:02 UTC 2009
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 at endoframe.com>
> > <http://endoframe.com> Jabber: <braden at jabber.org>
> >
>
> 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 at endoframe.com>
More information about the fedora-list
mailing list