From owner-freebsd-bugs Thu Feb 7 1:45:39 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 54B6D37B422 for ; Thu, 7 Feb 2002 01:45:37 -0800 (PST) Received: from dialup-209.245.135.248.dial1.sanjose1.level3.net ([209.245.135.248] helo=blossom.cjclark.org) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Yl7A-0003yZ-00; Thu, 07 Feb 2002 01:45:21 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g179iHR05100; Thu, 7 Feb 2002 01:44:17 -0800 (PST) (envelope-from cjc) Date: Thu, 7 Feb 2002 01:44:07 -0800 From: "Crist J. Clark" To: Peter Pentchev Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/34666: Last entry in /etc/exports ignored Message-ID: <20020207014407.E2143@blossom.cjclark.org> References: <200202070830.g178U5s90546@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202070830.g178U5s90546@freefall.freebsd.org>; from roam@ringlet.net on Thu, Feb 07, 2002 at 12:30:05AM -0800 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Feb 07, 2002 at 12:30:05AM -0800, Peter Pentchev wrote: [snip] > Yes, I am trying to do that. The first two lines work. Further > experimentation reveals that the third and higher mount points for > /usr fail. I had originally had only 3 mount points, hence the > reference to "last" in my original post. I added the /usr/test entry > for testing. > > Here is my /etc/exports. > > /usr/src -ro yoda > /usr/obj -ro yoda > /usr/ports -maproot=root yoda > /usr/test -ro yoda > > Perhaps I misunderstood exports(5)? > > > Mount points for a filesystem may appear on multiple lines each with > different sets of hosts and export options. > Yes, the problem is exactly what everyone guessed. The line you quote doesn't appy since all exports for the one filesystem are for the same host. I assume /usr is the filesystem and all the others are directories in it. You want something like, /usr/src /usr/obj /usr/ports /usr/test -ro yoda However, note that /usr/ports is not '-maproot=root'. You may make them all '-maproot=root' if you wish. You can only specify one set of options for a filesystem and a given host/net. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message