*BSD News Article 82354


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!tezcat!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!newsfeed.internetmci.com!news.msfc.nasa.gov!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problems mounting Linux machinesdisk to FreeBSD machine
Date: 5 Nov 1996 15:51:51 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 61
Message-ID: <55nnqn$gqf@sol.ctr.columbia.edu>
References: <stanbE0BAt4.DL@netcom.com> <327DD5C3.2781E494@FreeBSD.org>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, Jordan K. Hubbard
(jkh@FreeBSD.org) had the courage to say:

: Stan Brown wrote:
: > Nov  3 15:17:24 yogi nfsd[200]: NFS request from koala originated on insecure port, psychoanalysis suggested

: Goddamn smartass operating system. :-)

: >         Dooes anyone have a clue what's goin on here & how I can fix it?

: If you're mounting these Linux filesystems with mount, add the -P flag
: (and read the man page for mount_nfs while you're at it).  If you're
: doing it through fstab, add the ``secure'' flag to your options (man
: fstab).

Arrrrggghhh... Jordan, you made this mistake with sysinstall a while back
and you're still making it. :) If you want to mount a filesystem using
the NFSMNT_RESVPORT option to force the use of reserved ports, you use
-o resvport with mount and -P with mount_nfs, not the other way around as
your instructions suggest.

I don't think there's such a thing as 'secure' either; I've been using the
resvport keyword in my /etc/fstab mount options for a while now and it works
fine. (Note that you need the resvport option in youy automounter maps
as well if you use amd with other systems -- machines that don't
understand the resvport keyword will just ignore it.)

So, to recap: if you want to add a line to your FreeBSD /etc/fstab to mount
an NFS filesystem from a machine that insists on the use of reserved
ports, do something like this:

server:/foo			/foo		nfs	rw,resvport 0 0

If you want to issue the mount command from the shell yourself, do
this:

# mount -o resvport,rw server:/foo /foo

It is also possible to do this:

# mount_nfs -P server:/foo /foo

But you really don't need to call mount_nfs yourself since the top level
mount command calls it for you. Using mount is recommended since it
provides you with a more consistent command line usage (the individual
mount_foo commands may expect their own unique little syntactical quirks).
Well, that's why I do it that way at least. To each his own.

-Bill

PS: Jordan, stop quoting the man pages from Bizarro-FreeBSD. It am not
    ready for release yet. :)

--
=============================================================================
-Bill Paul            (212) 854-6020 | System Manager, Master of Unix-Fu
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
=============================================================================
 "If you're ever in trouble, go to the CTR. Ask for Bill. He will help you."
=============================================================================