[976] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: mounting a linux machine

daemon@ATHENA.MIT.EDU (Nathan J. Williams)
Thu Jul 25 10:09:25 1996

Date: Thu, 25 Jul 1996 10:05:11 -0400
From: "Nathan J. Williams" <nathanw@ai.mit.edu>
To: Chris Lopes <lopes@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: "[975] in netbsd-help mailing list archive"


   i have a linux machine that's nfs exporting a directory 
   mounting this directory (via attach -n -e) works fine on MOST athena
   platforms (sun, dec, linux, etc)
   when i attempt to mount it from a NetBSD machine, the mount (attach)
   seems to work fine (says it mounted ok)
   but if i try to cd to that directory, i get:
   directory: Stale NFS file handle.

	The Linux rpc.nfsd wants NFS requests to come from a
priveleged port on the server machine, for extremely weak security
reasons. NetBSD doesn't do this by default. You need to pass the -P
option to mount_nfs on the NetBSD box to make it use a priveleged
port. These commands will do it:

mount_nfs -P host:/dir /mntpoint
mount -o -P host:/dir /mntpoint
attach -n -e -O -P host:/dir

If you look at the syslogs on the Linux box that is serving the
filesystem, you'll probably see lots of error messages about the
accesses from insecure ports.

	- Nathan

home help back first fref pref prev next nref lref last post