Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!news.dacom.co.kr!news.kreonet.re.kr!overload.lbl.gov!eubie.lbl.gov!jin From: jin@eubie.lbl.gov (Jin Guojun[ITG]) Newsgroups: comp.unix.bsd.freebsd.misc Subject: exporting File system Date: 10 Jan 1996 17:35:42 GMT Organization: Lawrence Berkeley Laboratory Lines: 55 Message-ID: <4d0tde$jgs@overload.lbl.gov> NNTP-Posting-Host: eubie.lbl.gov Keywords: Export, File System I encounted a couple of exporting file system problems. 1) owner cannot read the imported file system: server# more /etc/exports /usr/local -ro -mapall=nobody:100 -network 128.3.xxx -mask 255.255.xxx.0 server# ls -l /usr/local/src/mydir drwxr-xr-x 25 jin staff 512 Nov 6 07:31 examples and many-things... client# mount server:/usr/local /mnt client# ls -dl /mnt/src drwx------ 3 jin staff 512 Nov 6 05:19 mydir/ client-me% ls -l /mnt/src/mydir client-me% ls -l /mnt/src/mydir/* ls: No match. client-me% ls -l /mnt/src/mydir/examples ls: /mnt/src/mydir/examples: Permission denied 2) how to export two directories on the same file system? # ls -l /usr/local drwxr-xr-x 2 bin bin 512 Nov 4 11:14 etc/ drwxrwxr-x 2 bin bin 512 Dec 8 00:09 include/ drwxr-xr-x 2 bin bin 512 Nov 4 11:14 info/ drwxrwxr-x 8 bin bin 1024 Dec 15 07:35 lib/ drwxr-xr-x 2 bin bin 512 Nov 4 11:14 libexec/ drwxr-xr-x 22 bin bin 512 Jan 6 03:31 man/ drwxr-xr-x 5 root bin 512 Oct 11 15:17 pthreads/ drwxr-xr-x 2 bin bin 512 Nov 4 11:14 sbin/ drwxr-xr-x 4 bin bin 512 Dec 8 00:10 share/ drwxrwx--- 4 root bin 512 Dec 15 07:57 src/ Under FreeBSD, it seems that there is no way to export /usr/local/src and /usr/local/share unless export the entire /usr/local. If /etc/exports contains such lines: /usr/local/share -ro -mapall=nobody:100 -network 128.3.xxx -mask 255.255.xxx.0 /usr/local/src -ro -mapall=nobody:100 -network 128.3.xxx -mask 255.255.xxx.0 The mountd will complain that: server# Jan 10 09:32:20 server mountd[91]: Can't change attributes for /usr/local/src. Jan 10 09:32:20 server mountd[91]: Can't change attributes for /usr/local/src. Jan 10 09:32:20 server mountd[91]: Bad exports list line /usr/local/src -ro -mapall Jan 10 09:32:20 server mountd[91]: Bad exports list line /usr/local/src -ro -mapall Is there another way to export more than two directories on the same file system without exporting extire file system? Thanks for advice, -- /-------------- 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 |