From owner-freebsd-questions Thu Sep 13 8:52:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.ms-agentur.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 4061F37B40A for ; Thu, 13 Sep 2001 08:52:21 -0700 (PDT) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.ms-agentur.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA18866; Thu, 13 Sep 2001 18:01:29 +0200 Message-ID: <3BA0D62C.6070502@i-clue.de> Date: Thu, 13 Sep 2001 17:52:12 +0200 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.3+) Gecko/20010905 X-Accept-Language: de, en MIME-Version: 1.0 To: Graham Lillico Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NFS References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Graham Lillico wrote: > Hi, > > I'm trying to share my /usr/src, /usr/obj and /usr/ports directories > via NFS. > > My /etc/exports file looks like this > > /usr/src -maproot=0 -network 192.168.1 > /usr/obj -maproot=0 -network 192.168.1 > /usr/ports -maproot=0 -network 192.168.1 > > However when I restart NFS I get the following messages > > mountd[15755]: can't change attributes for /usr/obj > mountd[15755]: bad exports list line /usr/obj -maproot > mountd[15755]: can't change attributes for /usr/ports > mountd[15755]: bad exports list line /usr/ports -maproot > > and I cannot then nfs mount any directory apart from /usr/src on a > remote host. > > Is this because they are all part of the same filesystem, (i.e. should > they be on there own filesystem)? Or is it something else? You cannot export a filesystem more than once. If all of those directories reside on one filesystem, only the first one will be exported. Assuming the filesystem is mounted at /usr, export /usr -maproot=0 -alldirs -network 192.168.1 instead. You will be able to mount subdirs of this directory at the remote box. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message