From owner-freebsd-questions@FreeBSD.ORG Mon Jan 10 21:32:08 2005 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 BA02E16A4CE for ; Mon, 10 Jan 2005 21:32:08 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25FC143D48 for ; Mon, 10 Jan 2005 21:32:08 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id E8BF5FD021; Mon, 10 Jan 2005 22:32:06 +0100 (CET) Message-ID: <41E2F452.9090102@locolomo.org> Date: Mon, 10 Jan 2005 22:32:03 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041114 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: "Andrew L. Gould" References: <1105332185.1028.4.camel@p4> <41E24463.3080207@locolomo.org> <1105389918.813.2.camel@p4> <200501101509.20300.algould@datawok.com> In-Reply-To: <200501101509.20300.algould@datawok.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: Robert Marella Subject: Re: NFS export of evolution 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: Mon, 10 Jan 2005 21:32:08 -0000 Andrew L. Gould wrote: > I had a hard time sharing NFS directories that were not actual mount > points. When I changed the shared directories in /etc/exports to > actual mount points (not directories below them) with -alldirs, I was > able to mount the specific subdirectories I wanted on the client side. > Although /etc/exports allows me to limit access to my own user, the > idea of sharing whole mount points makes me a little nervous, so I > don't use NFS much. I'm sure I've done something wrong; but I found > it easier to use the alternatives below than to hunt down the problem. OK, this appears to be a different problem, I understod Robert was able to mount. Anyway, the NFS documentation isn't completely clear but, you can export any directory, say /var/ftp/pub which I have on my /var partition. But you can only use the option -alldirs when exporting a partition. Exporting a partition with -alldirs allows you to mount any sub- directory. If you do not want to export all directories in the whole partition you have to list each directory you want to be mountable. Also, permisions are set on a per partition-host/net combination, so this is NOT ok: /var/ftp/pub -ro -network 172.16.0.0 -mask 255.255.0.0 /var/httpd -rw -network 172.16.0.0 -mask 255.255.0.0 however this would be ok: /var/ftp/pub -ro -network 172.16.0.0 -mask 255.255.0.0 /var/ftp/pub -rw -network 172.17.0.0 -mask 255.255.0.0 /home/httpd -rw -network 172.16.0.0 -mask 255.255.0.0 this is really anoying :-( due to the permissions, and the the restric- tion on -alldirs you have to partition your disk according to the per- missions you want to nfs export the different things. It might be worth creating a slice for nfs exports, it is easier to repartion as needed if the slice doesn't also host your OS. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2