[982] in netbsd-help mailing list archive
No subject found in mail header
daemon@ATHENA.MIT.EDU (Chris Lopes)
Thu Jul 25 20:42:35 1996
To: Yoav Yerushalmi <yoav@MIT.EDU>
Cc: lopes@MIT.EDU, netbsd-help@MIT.EDU, raghinii@MIT.EDU, ddaniel@MIT.EDU
In-Reply-To: Your message of Thu, 25 Jul 1996 11:07:16 -0400.
<199607251507.LAA24592@i-see-everything-twice.MIT.EDU>
Date: Thu, 25 Jul 1996 20:38:38 EDT
From: Chris Lopes <lopes@MIT.EDU>
hi
>
> could you first try using mount_nfs with those options and see
> if that works? if it does, then try the following flag to attach
if i do (as root): mount_nfs -P host:/dir /var/tmp/foo
then it exists silently (no errors)
and then:
cd /var/tmp/foo
ls
i get nothing.... which MIGHT make sence, since it's root that's
mounting here, and the linux nfs server has this line in /etc/exports:
/dir *.mit.edu(rw,root_squash)
i say it might make sense because if i do ``mount host:/dir /usr/tmp/foo'' from another LINUX machine as ROOT, then the directory is
empty DUE TO THE ROOT_SQUASH
and when login as a normal user, do the mount under su, and ls the
directory after exiting the su, i can see the contents
so, if i try the same thing on the netbsd machine:
1. login as normal user
2. su
3. mount_nfs -P host:/dir /var/tmp/foo
4. exit su shell
THEN i can see the contents of the directory (and read & write them)
but i cannot possibly seem to unmount it (as root)
none of these work:
umount -fv /var/tmp/foo
output: umount: /u1/var/tmp/foo: not currently mounted
umount -a -fv -h host -t nfs
output: none
yet "host:/dir on /var/tmp/foo type nfs" still appears as ``mount''
output and i can still see the contents of the directory
so, my 2 questions:
1. how on earth can i unmount???
2. how can i get the normal user to be able to ATTACH the host
i.e. get attach to do the ``mount_nfs -P host:/dir /host/dir"
> attach -n -e -o "-o-P"
> (or try putting a space on the -o-P thing too.. I'm not
> that familiar with attach...)
ok, the attach man page says that -o is for giving options to mount
mount takes a -o, but it's NOT FOR SPECIFYING OPTION TO MOUNT_NFS
so i don't see how the above syntax would work
(attach -n -e -o -P ... doesn't seem to work either, as i said in a
previous email [gives stale nfs hangle error, so obviously the -P isn't
getting to mount_nfs, or mount_nfs isn't getting called at all])
in fact, i don't see any possible way to FORCE attach to:
1. use mount_nfs
2. use the -P option to mount_nfs
i really need this to work, so any help provided would be much
appreciated
thanx in advance
--------
Christopher Lopes lopes@mit.edu
229 Commonwealth Ave. Computer Science
Boston, MA Phi Kappa Theta
02116-1704 (617) 437-7795