From owner-freebsd-stable Sun May 9 9:35:54 1999 Delivered-To: freebsd-stable@freebsd.org Received: from crydee.sai.msu.ru (crydee.sai.msu.ru [195.208.220.203]) by hub.freebsd.org (Postfix) with ESMTP id 97FBD14FA6 for ; Sun, 9 May 1999 09:35:46 -0700 (PDT) (envelope-from asv1@crydee.sai.msu.ru) Received: from localhost (asv1@localhost) by crydee.sai.msu.ru (8.9.2/8.9.2) with ESMTP id TAA01779; Sun, 9 May 1999 19:36:57 +0400 (MSD) (envelope-from asv1@crydee.sai.msu.ru) Date: Sun, 9 May 1999 19:36:57 +0400 (MSD) From: "Sergey Ayukov (mailing lists)" To: Keith Stevenson Cc: freebsd-stable@FreeBSD.ORG Subject: Re: NFS question.. In-Reply-To: <19990509121630.A14743@homer.louisville.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 9 May 1999, Keith Stevenson wrote: > > Someone wanna clear the situation up before I install RH5.2?? (The original > > question being, can I export on a per-directory basis from my 3.1-STABLE > > machine, without exporting the entire local filesystem?) > > This is from a 3.1-STABLE box: > > # df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0s1a 1016303 20277 914722 2% / > /dev/wd0s1e 508143 1 467491 0% /home/home1 > /dev/wd1s1e 1016303 7702 927297 1% /soft/soft1 > /dev/wd0s1g 417119 2 383748 0% /tmp > /dev/wd0s1f 2032623 404667 1465347 22% /usr > /dev/wd1s1f 1016303 2193 932806 0% /var > /dev/wd1s1g 1016303 137 934862 0% /var/log > /dev/wd1s1h 925215 6 851192 0% /var/tmp > procfs 4 4 0 100% /proc > /dev/wfd0s1e 119439 5068 104816 5% /var/adm/tcheck > > # cd /var/adm/tcheck/ > # ls -l > total 7 > drwxr-xr-x 2 root wheel 512 May 4 11:19 bin > drwxr-xr-x 2 root wheel 512 Mar 26 20:58 databases > drwxr-xr-x 2 root wheel 512 May 4 11:19 osaka > -rw-r--r-- 1 root wheel 3753 Mar 26 20:52 tw.config > > # showmount -e localhost > Exports list on localhost: > /var/adm/tcheck/osaka foo.example.org And your /etc/exports file?? > My analysis of this is that FreeBSD _CAN_ export subdirectories under > a mount point. As for the issue of whether or not the NFS client can > somehow trick the NFS server into granting access about the export > point, well I don't export to hosts I don't trust. (You shouldn't > with Linux either.) Hmmm... I wonder if 3.1-RELEASE is broken? I can't do the same; if I put /var/spool/pcnfs into /etc/exports without exporting /var, all I get is: May 9 19:26:02 crydee mountd[1723]: could not remount /var/spool/pcnfs: Invalid argument May 9 19:26:02 crydee mountd[1723]: bad exports list line /var/spool/pcnfs -alldirs -network 195.208.220 -mask 255.255.255.0 and /var/spool/pcnfs is not listed in `showmount -e' output. > I ran Linux for 5 years prior to switching to FreeBSD. The hardest thing about > setting up NFS under Linux is that *&%@! config file format. FreeBSD's > /etc/exports format is a lot closer to the commercial *NIXs I work with. I'd > recommend against reinstalling RedHat. I came from that world, and have been > much happier since I made the switch. I only wish that my HPUX systems were > as well-behaved as my FreeBSD boxen. So far I did not reach any stage of happiness yet... Config format is rather minor issue IMHO unless you have 100-line exports file which is unlikely. All in all, right now Linux NFS looks better for me: it has more features and is much faster. This might depend on many factors, of course. If your clients are Solaris or other commercial Unixes with NFSv3, FreeBSD might be a lot better for you than Linux. In my case, it is not. The bad part about Linux NFS was that pcnfsd tends to crash from time to time (esp. when printing files over 10MB), sometimes taking also lpd with him. --------------------------------------------------------------------------- Dr. Sergey Ayukov Sternberg Astronomical Institute http://www.ayukov.com Moscow, Russia http://crydee.sai.msu.ru/index-asv.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message