From owner-freebsd-questions Sun Sep 26 15:21:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id D6DF814BF2 for ; Sun, 26 Sep 1999 15:21:10 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id SAA90357; Sun, 26 Sep 1999 18:24:03 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199909262224.SAA90357@cc942873-a.ewndsr1.nj.home.com> Subject: Re: NFS Mounting....... In-Reply-To: <99092612040600.00376@freebsd.cybcon.com> from william woods at "Sep 26, 1999 12:03:24 pm" To: wwoods@cybcon.com Date: Sun, 26 Sep 1999 18:24:03 -0400 (EDT) Cc: questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG william woods wrote, > OK.... > This is my exports file: > ------------------ > /usr/local/src -alldirs -mapall=0:192.168.0.2 > /usr/local/obj -alldirs -mapall=0:192.168.0.2 > ------------------- > > The goal here is to export /usr/local/src and /usr/local/obj > to 192.168.0.2 and to allow it to be read/written to. > > But, when I do a: > > mount_nfs 192.168.0.1:/usr/local/src /usr/src I get > permission denied.... > > Help please.. Your /etc/exports syntax is seriously wacked. I _think_ you are trying to say, /usr/local/src -alldirs -mapall=0: 192.168.0.2 /usr/local/obj -alldirs -mapall=0: 192.168.0.2 BUT! A few caveats here: 1) You are mapping _all_ users to root on these mounts. Anyone on 192.168.0.2 (or anyone who can make the NFS server think their machine is 192.168.0.2) can do _anything_ to the files on the mount. 2) Are /usr/local/src and /usr/local/obj really on separate file systems? In the default install, they would both be on /usr. In this case, you would do, /usr -alldirs -mapall=0: 192.168.0.2 And take care of both in one swoop. However, you are exporting any other directories in /usr, but this is unavoidable with the -alldirs flag. If you just want to be able to mount at src or obj (and if I can guess at why you are doing this, I think that would be perfectly fine), you could do, /usr/local/src /usr/local/obj -mapall=0: 192.168.0.2 HTH. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message