Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 May 1999 12:16:30 -0400
From:      Keith Stevenson <k.stevenson@louisville.edu>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: NFS question..
Message-ID:  <19990509121630.A14743@homer.louisville.edu>
In-Reply-To: <37356B25.DC23929@bitey.cyber.com.au>; from Gavan McCormack on Sun, May 09, 1999 at 09:01:57PM %2B1000
References:  <Pine.BSF.4.02A.9905082352270.11097-100000@shell.uniserve.ca> <373544F8.2CA1CFBD@bitey.cyber.com.au> <37355B45.6F9B43B5@newsguy.com> <37356B25.DC23929@bitey.cyber.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 09, 1999 at 09:01:57PM +1000, Gavan McCormack 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


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.)

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.

Regards,
--Keith Stevenson--

-- 
Keith Stevenson
System Programmer - Data Center Services - University of Louisville
k.stevenson@louisville.edu
PGP key fingerprint =  4B 29 A8 95 A8 82 EA A2  29 CE 68 DE FC EE B6 A0


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990509121630.A14743>