Date: Sat, 23 Dec 1995 09:26:44 +0100 (MET) From: Thomas Graichen <graichen@omega.physik.fu-berlin.de> To: jin@pesto.lbl.gov Cc: bugs@freebsd.org Subject: Re: kern/909: exports: Bad lines. mountd won't export FS Message-ID: <199512230826.JAA00516@mordillo> In-Reply-To: <199512222018.MAA28959@pesto.lbl.gov> from "Jin Guojun[ITG]" at Dec 22, 95 12:18:12 pm
index | next in thread | previous in thread | raw e-mail
hasn't Jin Guojun[ITG] said ? ...
>
> >Synopsis: exports: Bad lines. mountd won't export FS
>
> There is no way to export two (2) subdirectories on a same
> files system.
> -----------------------------------------------------------------
> This is working when /usr/other is on /usr, and /usr/local is
> on a different file system:
> # more /etc/fstab
> /dev/wd0s2b none swap sw 0 0
> /dev/wd0a / ufs rw 1 1
> /dev/wd0s2e /usr ufs rw 1 1
> /dev/wd0s3e /usr/local ufs rw 1 1
> # more /etc/exports
> /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
> /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
>
> -----------------------------------------------------------------
> This is not working:
> # more /etc/fstab
> /dev/wd0s2b none swap sw 0 0
> /dev/wd0a / ufs rw 1 1
> /dev/wd0s2e /usr ufs rw 1 1
> # more /etc/exports
> /usr/other -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
> /usr/local -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
>
> Dec 22 05:56:17 myname mountd[76]: Can't change attributes for /usr/local.
> Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall
> Dec 22 05:56:17 myname mountd[76]: Bad exports list line /usr/local -ro -mapall
>
> If changing the /etc/exports to
> /usr -ro -mapall=nobody:100 -network xxxx.yyyy.zzzz -mask a.b.c.d
> then the clients can only mount entire /usr, but not /usr/local and
> /usr/other.
> -----------------------------------------------------------------
>
i think you have to put /usr/other and /usr/local into one line if
they are on the same filesystem - for the second case look at the
-alldirs flag in "man exports" :-)
t
_______________________________________________________||___________________
__||
Perfection is reached, not when there is no __|| thomas graichen
longer anything to add, but when there __|| freie universitaet berlin
is no longer anything to take away __|| fachbereich physik
__||
- Antoine de Saint-Exupery - __|| graichen@mail.physik.fu-berlin.de
___________________________||__________________graichen@FreeBSD.org_________
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512230826.JAA00516>
