From owner-freebsd-net@FreeBSD.ORG Tue Jun 16 21:55:08 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E231065672 for ; Tue, 16 Jun 2009 21:55:08 +0000 (UTC) (envelope-from prvs=1411f0a503=brian@Awfulhak.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id AB7408FC1A for ; Tue, 16 Jun 2009 21:55:08 +0000 (UTC) (envelope-from prvs=1411f0a503=brian@Awfulhak.org) Received: from pd4ml2so-ssvc.prod.shaw.ca ([10.0.141.136]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 16 Jun 2009 15:26:44 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=0 a=QZtpE4IASS50N7JhAPwA:9 a=_PN535u-yFKTGKNWdaQnWXomf04A:4 a=WJ3hkfHDukgA:10 a=SV7veod9ZcQA:10 Received: from unknown (HELO store.lan.Awfulhak.org) ([174.7.23.140]) by pd4ml2so-dmz.prod.shaw.ca with ESMTP; 16 Jun 2009 15:26:44 -0600 Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id C76F6C433AC_A380E38B; Tue, 16 Jun 2009 21:27:20 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Sophos Email Appliance) with ESMTP id 84F8DC460FA_A380E36F; Tue, 16 Jun 2009 21:27:18 +0000 (GMT) Received: from localhost (brian@gw.lan.Awfulhak.org [172.16.0.1]) by gw.Awfulhak.org (8.14.3/8.14.3) with ESMTP id n5GLQebM070173; Tue, 16 Jun 2009 14:26:41 -0700 (PDT) (envelope-from brian@Awfulhak.org) Date: Tue, 16 Jun 2009 14:26:46 -0700 From: Brian Somers To: Marco Borsatino Message-ID: <20090616142646.173b092d@Awfulhak.org> In-Reply-To: References: X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: NFS - exports syntax X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 21:55:09 -0000 On Mon, 15 Jun 2009 18:46:35 +0200, "marco\.borsatino\@poste\.it" wrote: > First, thank you for your help. >=20 >=20 >=20 > > > > FreeBSD's exports implementation will only allow you to associate > > mount options per local filesystem per remote machine, so this > > version: > > > > > /usr/home=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc02 pc02 > > > /cond1 -mapall=3Duser2 pc01 pc02 > > > /cond2 -mapall=3Duser1 pc01 pc02 > > > > is correct, but only if /cond1 and /cond2 are different filesystems. > > If they're the same, this won't work. > >=20 >=20 > /cond1 and /cond2 are folders under root on /dev/ad0s1a; this is the reas= on whi my exports does not work. Yes. > So should I do something like this: > #mkdir /usr/shared/cond1 > #mkdir /usr/shared/cond2 > (this is, I think, a better choice also from different points of view). > (exports) > /usr/shared -alldirs pc01 pc02 (or -network 192.168.0) > (mount for different users) > #mount _nfs server:/usr/shared/cond1 /mnt/for-user-1 > #mount _nfs server:/usr/shared/cond2 /mnt/for-user-2 >=20 > But, if this sintax is correct, how can I use mapall option? Your exports file should say: /usr/shared/cond1 -maproot=3Dwhatever pc01 /usr/shared/cond2 -maproot=3Dsomethingelse pc02 The two entries for the same physical filesystem are fine as long as you don't atempt to duplicate the remote host. --=20 Brian Somers Don't _EVER_ lose your sense of humour !