[comp.sys.next] NFS export and mounts querry

rogerj@batcomputer.tn.cornell.edu (Roger Jagoda) (03/13/90)

Folks,
 
Another thought. Some of our profs here want to have their OD's mounted, then
exported for all to use. Well, I tried the obvious:
 
First mount the OD:
 
mount -o rw /dev/od0a /PROFS   (don't get IBM mad, but...)
 
Now, since we export "/" to everyone, and /PROFS in part of the same FS,
then it should be exported to, right? Well, wrong. After we do:
 
exportfs -va
 
we see "re-exporting /"
 
But when we try to mount the OD from the remote machines, we get:
 
"access denied"
 
Do I have to put the export command in the /etc/exports file? Isn't
there a way to do it manually for something you don't want to have
looked for each time at bootup?
 
On the remote machine we tried everything from:
 
mount -v -t nfs -o rw <diskfull machine>:/PROFS /Users/<user>/Teach
mount -v -t 4.3 -o rw <diskfull machine>:/PROFS /Users/<user>/Teach
mount -v -t nfs -o rw,bg,noquota,net <diskfull machine>:/PROFS /Users/<user>/Teach
mount -v -t 4.3 -o rw,bg,noquota,net <diskfull machine>:/PROFS /Users/<user>/Teach

So, uhm, what did we do wrong?
 
Thanks in advance!
 
--Roger Jagoda
--Cornell University
--FQOJ@CORNELLA.CIT.CORNELL.EDU

sysdoc@boingo.med.jhu.edu (The Doctor) (03/13/90)

> Another thought. Some of our profs here want to have their OD's mounted, then
> exported for all to use. Well, I tried the obvious:
>  
> First mount the OD:
>  
> mount -o rw /dev/od0a /PROFS   (don't get IBM mad, but...)
>  
> Now, since we export "/" to everyone, and /PROFS in part of the same FS,
> then it should be exported to, right? Well, wrong. After we do:
>  
> --Roger Jagoda

No, you must export each file system separately. I.e. /dev/od0a represents
an entire filesystem, that does not implicitly belong to /, it is simply
mounted into /. You must use the command:
	exportfs /PROFS
or put the line
	/PROFS 
into your /etc/exports file and use the command:
	exportfs.

-Derek Ney
sysdoc@boingo.med.jhu.edu

rca@cslab8g.cs.brown.edu (Ronald C.F. Antony) (03/14/90)

Did you create a mount directory or did you mount on the fly?
You need a directory so that things work correctly...
Well at least I think I did read something like this somewhere..

Ronald
------------------------------------------------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one persists
in trying to adapt the world to himself. Therefore all progress depends on the
unreasonable man."  Bernhard Shaw | rca@cs.brown.edu or antony@browncog.bitnet
------------------------------------------------------------------------------

boyle@altair.mcs.anl.gov (03/19/90)

/* Written  8:32 pm  Mar 12, 1990 by rogerj@batcomputer.tn.cornell.edu in altair:comp.sys.next */
/* ---------- "NFS export and mounts querry" ---------- */
Folks,
 
Another thought. Some of our profs here want to have their OD's mounted, then
exported for all to use. Well, I tried the obvious:
 [...]
--Roger Jagoda
--Cornell University
--FQOJ@CORNELLA.CIT.CORNELL.EDU
/* End of text from altair:comp.sys.next */

Have you (and the profs :-) considered that files on the optical are
"owned" by whoever mounts the optical?  That is, there is no file
protection (distinction among owners) of files on the OD, as I
understand it.  This has the plus that one can take his private OD to
another machine on which his login is different, and still use the
files; it has a number of minuses for having multiple-users' files on
an OD.  

Have you investigated what rwx permissions are needed to access these
NFSed OD files?

Jim Boyle