public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* exporting subdirectory of shared filesystem to different hosts
@ 2009-06-14 17:53 Sascha Frey
       [not found] ` <20090614175325.GA10466-15KJMqYlBKyzX87ganJRvOIeGoz/g4FR@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Frey @ 2009-06-14 17:53 UTC (permalink / raw)
  To: linux-nfs

Hi,

we have some Linux NFS servers distributing our users' homes to our
clients.

We are using NIS netgroups to restrict access to certain NFS shares.
Our /etc/exports file looks like this:
/var/lib/nfs/v4root \
        *(ro,fsid=0,insecure,no_subtree_check)
/export/homes \
        -rw,async,insecure,no_subtree_check @netgroupA
/var/lib/nfs/v4root/export/homes \
        -rw,async,insecure,nohide,no_subtree_check @netgroupA

(/export/homes is bind-mounted to /var/lib/nfs/v4root/export/homes to
have the same path for NFSv3 and v4 exports.)

Now we need to export some of the home directories to an additional
group of hosts. So we added two lines for each one of these 'special
cases' to the exports file:

/export/homes/usera \
        -rw,async,insecure,no_subtree_check @netgroupA @netgroupB
/var/lib/nfs/v4root/export/homes/usera \
        -rw,async,insecure,nohide,no_subtree_check @netgroupA @netgroupB

Our Problem:
Hosts, which are member of netgroupB, are unable to mount
server:/export/homes/usera, if using NFSv4:
client:~# mount -t nfs4 server:/export/homes/usera /mnt
mount.nfs4: mounting server:/export/homes/usera failed, reason given by
server:
  No such file or directory

NFSv3 mount works (-t nfs)...

We can't export the whole homes-tree to netgroupB. Adding entries in
/etc/exports isn't a good idea either (we have more than 2000 home
directories).


Is there any chance to get this working without setting up export
entries for each single home directory?




Thanks,
Sascha


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-15 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-14 17:53 exporting subdirectory of shared filesystem to different hosts Sascha Frey
     [not found] ` <20090614175325.GA10466-15KJMqYlBKyzX87ganJRvOIeGoz/g4FR@public.gmane.org>
2009-06-15 22:49   ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox