From owner-freebsd-bugs Sat Dec 23 06:23:26 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA11671 for bugs-outgoing; Sat, 23 Dec 1995 06:23:26 -0800 (PST) Received: from omega.physik.fu-berlin.de (omega.physik.fu-berlin.de [130.133.3.51]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id GAA11664 for ; Sat, 23 Dec 1995 06:23:20 -0800 (PST) Received: from mordillo (oberon.physik.fu-berlin.de [130.133.3.126]) by omega.physik.fu-berlin.de (8.7.1/8.7.1) with ESMTP id PAA20701; Sat, 23 Dec 1995 15:20:53 +0100 (MET) Received: (from graichen@localhost) by mordillo (8.6.12/8.6.12) id JAA00516; Sat, 23 Dec 1995 09:26:44 +0100 From: Thomas Graichen Message-Id: <199512230826.JAA00516@mordillo> Subject: Re: kern/909: exports: Bad lines. mountd won't export FS To: jin@pesto.lbl.gov Date: Sat, 23 Dec 1995 09:26:44 +0100 (MET) Cc: bugs@freebsd.org In-Reply-To: <199512222018.MAA28959@pesto.lbl.gov> from "Jin Guojun[ITG]" at Dec 22, 95 12:18:12 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-bugs@freebsd.org Precedence: bulk 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_________