From owner-freebsd-bugs Fri Dec 22 12:20:05 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA16139 for bugs-outgoing; Fri, 22 Dec 1995 12:20:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA16123 Fri, 22 Dec 1995 12:20:03 -0800 (PST) Resent-Date: Fri, 22 Dec 1995 12:20:03 -0800 (PST) Resent-Message-Id: <199512222020.MAA16123@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jin@pesto.lbl.gov Received: from pesto.lbl.gov (pesto.lbl.gov [128.3.196.67]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA16022 for ; Fri, 22 Dec 1995 12:18:36 -0800 (PST) Received: (from jin@localhost) by pesto.lbl.gov (8.6.12/8.6.12) id MAA28959; Fri, 22 Dec 1995 12:18:12 -0800 Message-Id: <199512222018.MAA28959@pesto.lbl.gov> Date: Fri, 22 Dec 1995 12:18:12 -0800 From: "Jin Guojun[ITG]" Reply-To: jin@pesto.lbl.gov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/909: exports: Bad lines. mountd won't export FS Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 909 >Category: kern >Synopsis: exports: Bad lines. mountd won't export FS >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 22 12:20:01 PST 1995 >Last-Modified: >Originator: Jin Guojun[ITG] >Organization: /-------------- Jin Guojun ------------ v ---- Internet: g_jin@lbl.gov ----\ | Imaging & Distributed Computing | Usenet: ucbvax!g_jin@lbl.gov | | Lawrence Berkeley Laboratory | Bitnet: -- | | 50B-2239, Berkeley, CA 94720 - jin%george.lbl.gov@Csa3.LBL.Gov | \--Ph#:(510) 486-7531 + Fax: 486-6363 --^--http://www-itg.lbl.gov/ITG.html-/ >Release: FreeBSD 2.1-STABLE i386 >Environment: 2.1.0-RELEASE >Description: 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. ----------------------------------------------------------------- >How-To-Repeat: This can be repeated following above description. >Fix: I hope this can be fixed. If this problem is the original design for the kernel and won't be resolved, please let me know. Thanks. >Audit-Trail: >Unformatted: