From owner-freebsd-questions@FreeBSD.ORG Sat Feb 28 21:58:11 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 CE12016A4CE for ; Sat, 28 Feb 2004 21:58:11 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 32B7B43D39 for ; Sat, 28 Feb 2004 21:58:11 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 12940 invoked by alias); 29 Feb 2004 05:58:08 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.011771 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 29 Feb 2004 05:58:08 +0900(KST) X-RCPTTO: freebsd-questions@freebsd.org,gentoo@tmgcon.com, Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i1T5sdMk293460; Sun, 29 Feb 2004 14:54:40 +0900 Message-ID: <40417F71.9020702@users.sourceforge.net> Date: Sun, 29 Feb 2004 14:58:09 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Munro Glass , freebsd-questions@freebsd.org References: <200402291745.34112.gentoo@tmgcon.com> In-Reply-To: <200402291745.34112.gentoo@tmgcon.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 05:58:11 -0000 Tom Munro Glass wrote: > I want to NFS share /usr/ports and /usr/src from a master machine for use by > other machines. If I specify -network and -mask options for each share, I get > the error: > > mountd[101]: can't change attributes for /usr/src > mountd[101]: bad exports list line /usr/src > > but if I don't have any options, the share works OK? > > What am I doing wrong? I'm doing this, but use in exports: /usr -ro -maproot=root -alldirs which allows to mount any subdir of /usr, which on the /usr partition. This way I can mount /usr/doc and /usr/src, readonly. Since I have /usr/ports on a separate partition, I also have to add a line like: /usr/ports -maproot=root Take care of what is exported and mounted readonly and not readonly. Hope that helps. Cheers, Rob.