From owner-freebsd-questions@FreeBSD.ORG Sun Feb 29 02:47:56 2004 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 4C2B416A4CE for ; Sun, 29 Feb 2004 02:47:56 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 900D043D1D for ; Sun, 29 Feb 2004 02:47:55 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i1TAlnId014011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Feb 2004 10:47:49 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1TAlmxU014010; Sun, 29 Feb 2004 10:47:48 GMT (envelope-from matthew) Date: Sun, 29 Feb 2004 10:47:48 +0000 From: Matthew Seaman To: Tom Munro Glass Message-ID: <20040229104748.GD14123@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Tom Munro Glass , freebsd-questions@freebsd.org References: <200402291745.34112.gentoo@tmgcon.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oj4kGyHlBMXGt3Le" Content-Disposition: inline In-Reply-To: <200402291745.34112.gentoo@tmgcon.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: NFS sharing /usr/ports and /usr/src X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Feb 2004 10:47:56 -0000 --oj4kGyHlBMXGt3Le Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 29, 2004 at 05:45:33PM +1300, Tom Munro Glass wrote: > I want to NFS share /usr/ports and /usr/src from a master machine for use= by=20 > other machines. If I specify -network and -mask options for each share, I= get=20 > the error: >=20 > mountd[101]: can't change attributes for /usr/src > mountd[101]: bad exports list line /usr/src >=20 > but if I don't have any options, the share works OK? >=20 > What am I doing wrong? You've probably got /usr/ports and /usr/src on the same disk partition. You can't export two chunks of the same partition to the same set of client hosts with different flags. Not only that, but you can't do anything that even smacks of changing the flags between two exported subdirectories on a single partition. Or in other words, it's the partition that gets exported, rather than the particular directory trees you specify. I think, although I could be wrong, that if you export, say, /usr/src which happens to reside on the /usr partition, then an NFS client can be persuaded to access files from anywhere on the /usr partition. What you should do is put the two subdirectories on the same line in the exports file: /usr/ports /usr/src -network 192.168.0.0 -mask 255.255.255.0 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --oj4kGyHlBMXGt3Le Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAQcNUdtESqEQa7a0RAkK6AJsG7bbaubPrPLcAXoyovFGj5nLXkwCfXKdK JRFb/PSp4i//it5AoamUreA= =BFXI -----END PGP SIGNATURE----- --oj4kGyHlBMXGt3Le--