From owner-freebsd-questions@FreeBSD.ORG Tue Oct 21 08:21:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A5D316A4B3 for ; Tue, 21 Oct 2003 08:21:44 -0700 (PDT) Received: from stan.kibserv.org (te-64-146-110-100.transedge.com [64.146.110.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE0E343F93 for ; Tue, 21 Oct 2003 08:21:40 -0700 (PDT) (envelope-from freebsd@kibserv.org) Received: (qmail 15746 invoked by uid 89); 21 Oct 2003 15:21:35 -0000 Received: from unknown (HELO ?64.146.110.102?) (freebsd@kibserv.org@64.146.110.102) by stan.kibserv.org with SMTP; 21 Oct 2003 15:21:35 -0000 From: Jason Cribbins To: freebsd-questions@freebsd.org Content-Type: text/plain Organization: MGM Communications LLC & kibserv Message-Id: <1066749692.81790.54.camel@butters> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 21 Oct 2003 11:21:33 -0400 Content-Transfer-Encoding: 7bit Subject: unable to use multiple exports for mountd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@kibserv.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2003 15:21:44 -0000 I have been dealing with this problem for many years and never really found a reasonable solution or explanation and now it has come to a point where I can no longer find work arounds to make it work the way I need it. How do I export more than one folder for export with different options for each? Here is my current exports file /share /usr/ports -mapall=root /usr/src /usr/obj /syscommon -ro -mapall=root but I get the following when I try to run mountd: Oct 21 10:24:49 butters mountd[80376]: can't change attributes for /syscommon Oct 21 10:24:49 butters mountd[80376]: bad exports list line /syscommon -ro -mapall If I reverse the exports to the following: /usr/src /usr/obj /syscommon -ro -mapall=root /share /usr/ports -mapall=root I get the following: Oct 21 10:38:20 butters mountd[1465]: can't change attributes for /usr/ports Oct 21 10:38:20 butters mountd[1465]: bad exports list line /share /usr/src /usr/obj /usr/ports -mapall It seems no matter which way I put the exports its always the second one that fails. Looking at the example in man exports(5) I see the same thing between the first entry and the 5th one....this seems to imply that what I am trying to do with my exports file should work just fine. from man page: /usr /usr/local -maproot=0:10 friends /usr -maproot=daemon grumpy.cis.uoguelph.ca 131.104.48.16 /usr -ro -mapall=nobody /u -maproot=bin: -network 131.104.48 -mask 255.255.255.0 /u2 -maproot=root friends /u2 -alldirs -network cis-net -mask cis-mask /cdrom -alldirs,quiet,ro -network 192.168.33.0 -mask 255.255.255.0 So where am I going wrong here? Jason Cribbins