From owner-freebsd-current Sun Aug 1 21: 1:46 1999 Delivered-To: freebsd-current@freebsd.org Received: from users.anet-stl.com (users.anet-stl.com [209.145.150.20]) by hub.freebsd.org (Postfix) with ESMTP id 1F86714E83 for ; Sun, 1 Aug 1999 21:01:37 -0700 (PDT) (envelope-from doogie@anet-stl.com) Received: from earth.anet-stl.com (earth.anet-stl.com [209.83.128.12]) by users.anet-stl.com (8.9.3/8.8.5) with SMTP id XAA16187; Sun, 1 Aug 1999 23:01:01 -0500 (CDT) Date: Sun, 1 Aug 1999 23:01:01 -0500 (CDT) From: Jason Young To: Kevin Day Cc: Matthew Dillon , Martin Blapp , freebsd-current@FreeBSD.ORG Subject: Re: mountpoint locking with fbsd-nfs In-Reply-To: <199908020347.WAA51467@celery.dragondata.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG IIRC, mount permissions (i.e., what IP addresses, root UID mangling, etc) are set per filesystem. Given a filesystem structure like this: > df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 127023 27151 89711 23% / /dev/ccd0c 8321099 2391764 5263648 31% /home /dev/da0s1e 2032623 732806 1137208 39% /usr /dev/da1s1f 2032623 816051 1053963 44% /var /dev/ccd1c 4001742 1571210 2110393 43% /var/mail procfs 4 4 0 100% /proc You can only set IP addresses to be exported to and other options only once for the /usr filesystem, once for the /var filesystem, etc. This doesn't mean if I export /home/doogie to 192.168.40.1 that that IP address can mount /home. Mount still controls the mountpoints allowed. If you want to export multiple mountpoints of the same filesystem, you need to specify them all on one line with one options set. Like this: /home/doogie /home/joebob /home/luser -maproot=0:0 testbox.accessus.net Jason Young accessUS Chief Network Engineer PS: I just realized the manpage disagrees with this; it has multiple exports lines for the same filesystem. I believe the manpage is wrong, at least in that it doesn't reflect reality. Comments from anybody? On Sun, 1 Aug 1999, Kevin Day wrote: > > Well, theoretically there is nothing wrong going on since you can mount > > things on top of an NFS directory. Mount only complains about > > duplicate normal partition mounts because it can't open the buffered > > block device the second time. NFS doesn't care how many times a > > directory is imported or exported. > > > > -Matt > > Matthew Dillon > > > > > > > > You sure about you can export a directory multiple times? I can't even > export two directories under the same filesystem. > > su-2.03# mount > /dev/wd0s1a on / (NFS exported, local, noatime, soft-updates, writes: sync 3945 async 1317317) > procfs on /proc (local) > su-2.03# cat /etc/exports > > /var home > /var/tmp home > su-2.03# mountd > Aug 1 22:43:01 celery mountd[46042]: can't change attributes for /var/tmp > Aug 1 22:43:01 celery mountd[46042]: bad exports list line /var/tmp home > > > > It actually exported /, which may not have been what i wanted. :) > > Or did I misunderstand you? > > Kevin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message