Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2009 10:29:21 +0200
From:      "marco\.borsatino\@poste\.it" <marco.borsatino@poste.it>
To:        freebsd-net@freebsd.org
Subject:   NFS - exports syntax
Message-ID:  <KL7ZKY$1B5AE7386EDE214385C98D408923D824@poste.it>

next in thread | raw e-mail | index | archive | help
Hi to all.=0AMy problem concerns NFS configuration. I'm trying to simulat=
e a little network using Sun VirtualBox in a Windows host and most of ope=
rations work fine, but I've some problems with /etc/exports syntax.=0AThi=
s is my current exports file:=0A--=0A/cond1 /cond2 -mapall=3Duser1 pc01 p=
c02=0A/usr/home -alldirs pc01 pc02=0A---=0AWhen I type:=0A#showmount -e=0A=
I get=0A/usr/home=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 pc02 pc02=0A=
/cond1=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc01 pc02=0A=
/cond2=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc01 pc02=0A=
which is ok. But I wold like to use different "mapall" options for differ=
ent filesystems; for example, something like this:=0A/usr/home -alldirs=C2=
=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc02 pc02=0A/cond1 -mapall=3Duser2 /co=
nd2 -mapall=3Duser1 pc01 pc02=0Awhich does not work: only /usr/home is ex=
ported. Or=0A/usr/home=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc02 pc02=0A/=
cond1 -mapall=3Duser2 pc01 pc02=0A/cond2 -mapall=3Duser1 pc01 pc02=0AOnly=
 /usr/home and /cond1 are exported.=0AFreeBSD exports man page states:=0A=
"Each line in the file (other than comment lines that begin with a #) spe=
cifies the mount point(s) and export flags within one local server file s=
ystem for one or more hosts.". So, is it impossible to export different d=
irectories to different users using mapping?=0AThanks. Sorry for my bad e=
nglish.=0AMarco=0A



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KL7ZKY$1B5AE7386EDE214385C98D408923D824>