From owner-freebsd-net@FreeBSD.ORG Tue May 17 18:32:05 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11CAA16A4CE for ; Tue, 17 May 2005 18:32:05 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id A552243D5A for ; Tue, 17 May 2005 18:32:04 +0000 (GMT) (envelope-from dean@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 3D95C1F042; Tue, 17 May 2005 20:31:59 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 1600) id 05F376746; Tue, 17 May 2005 20:31:58 +0200 (CEST) Date: Tue, 17 May 2005 20:31:58 +0200 From: Dean Strik To: Jeremie Le Hen Message-ID: <20050517183158.GG29278@stack.nl> References: <20050517140125.GD14297@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YH9Qf6Fh2G5kB/85" Content-Disposition: inline In-Reply-To: <20050517140125.GD14297@obiwan.tataz.chchile.org> X-Really: Yes User-Agent: Mutt/1.5.9i cc: freebsd-net@FreeBSD.org Subject: Re: Can't export /usr/ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 18:32:05 -0000 --YH9Qf6Fh2G5kB/85 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jeremie Le Hen wrote: > Look at this small session. The initial exports(5) file works fine. The > second one generate an error. >=20 > %%% > propane:tataz# cat /etc/exports=20 > /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 > /usr/home/tataz -maproot=3Dtataz -network 172.16.80.0 -mask 2= 55.255.255.0 > propane:tataz# sed -i '' '${ p; s%home/tataz%ports%; s/tataz/root/; }= ' /etc/exports=20 > propane:tataz# cat /etc/exports=20 > /usr/home/ncvs -ro -network 172.16.0.0 -mask 255.255.0.0 > /usr/home/tataz -maproot=3Dtataz -network 172.16.80.0 -mask 2= 55.255.255.0 > /usr/ports -maproot=3Droot -network 172.16.80.0 -mask 25= 5.255.255.0 > propane:tataz# /etc/rc.d/mountd reload > Reloading mountd config files. > propane:tataz# tail -n 2 /var/log/messages > May 17 15:33:03 propane mountd[367]: can't change attributes for /usr= /ports > May 17 15:33:03 propane mountd[367]: bad exports list line /usr/ports= -maproot > %%% >=20 > I checked mountd(8) sources, and this error messages appears when the > mount(2) syscall fails (I assume this is the way mountd(8) informs the > kernel about a directory to be exported). >=20 > I'm sure this is a foolish error from me, but I can't figure one. If /usr/ports and /usr/home/tataz are on the same filesystem, then you need to put both on the samen lines when exporting to the same host. You lose the possibililty to lose options specific to either export though. --=20 Dean C. Strik Eindhoven University of Technology dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/ "This isn't right. This isn't even wrong." -- Wolfgang Pauli --YH9Qf6Fh2G5kB/85 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCijie5Td/bYnvOAMRAm4hAJ4zOvF94ZPy2//jUdiYw3CGRWePDgCfYVrC ITHCcOR8+r1VDui22ZKixdU= =ZC3D -----END PGP SIGNATURE----- --YH9Qf6Fh2G5kB/85--