Date: Sun, 26 Sep 1999 18:24:03 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: wwoods@cybcon.com Cc: questions@FreeBSD.ORG Subject: Re: NFS Mounting....... Message-ID: <199909262224.SAA90357@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <99092612040600.00376@freebsd.cybcon.com> from william woods at "Sep 26, 1999 12:03:24 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909262224.SAA90357>