Date: Tue, 16 Jun 2009 14:26:46 -0700 From: Brian Somers <brian@Awfulhak.org> To: Marco Borsatino <marco.borsatino@poste.it> Cc: freebsd-net@freebsd.org Subject: Re: NFS - exports syntax Message-ID: <20090616142646.173b092d@Awfulhak.org> In-Reply-To: <KLAH9N$2F13AAD0B53B74DD4DA1F287B9BC8479@poste.it> References: <KLAH9N$2F13AAD0B53B74DD4DA1F287B9BC8479@poste.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Jun 2009 18:46:35 +0200, "marco\.borsatino\@poste\.it" <marco.bo= rsatino@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 <brian@Awfulhak.org> Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090616142646.173b092d>