From owner-freebsd-questions@FreeBSD.ORG Sun Feb 29 11:22:42 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 B171216A4CE for ; Sun, 29 Feb 2004 11:22:42 -0800 (PST) Received: from tmgcon.com (tmgcon.com [128.121.216.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F7E43D1F for ; Sun, 29 Feb 2004 11:22:42 -0800 (PST) (envelope-from gentoo@tmgcon.com) Received: from kereru.tmgcon1.co.nz (210-86-38-81.dialup.xtra.co.nz [210.86.38.81]) by tmgcon.com (8.12.10/8.12.6) with ESMTP id i1TJMe1M002728; Sun, 29 Feb 2004 19:22:41 GMT Received: from gentoo (unknown [192.168.0.64]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by kereru.tmgcon1.co.nz (Postfix) with ESMTP id 4774DCFEF; Mon, 1 Mar 2004 08:22:39 +1300 (NZDT) From: Tom Munro Glass To: Matthew Seaman , freebsd-questions@freebsd.org Date: Mon, 1 Mar 2004 08:22:38 +1300 User-Agent: KMail/1.6 References: <200402291745.34112.gentoo@tmgcon.com> <20040229104748.GD14123@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040229104748.GD14123@happy-idiot-talk.infracaninophile.co.uk> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403010822.38976.gentoo@tmgcon.com> 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 19:22:42 -0000 On Sun, 29 Feb 2004 23:47, Matthew Seaman wrote: > 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 other machines. > > 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 Thanks for a very clear explanation Matthew. I'd missed a couple of critical points, namely that you can only have one line in exports per filesystem, and also that you can specify multiple paths on one line. Problem solved! Cheers, Tom