Re: NFS4 home mounts owned by nfsnobody

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

 



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

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

---------------------------------------------------
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

Hope this helps

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