new bee,
1. When users mount, they cannot specify the mount point - only
the device.
2. AFAIK, a remote machine can only mount your machine through
nfs. The mounting is done as new nfs filesystems on the remote machine. If
you are mounting the remote machine, you will have to mount the remote
filesystems entry by entry.
Consider the following output from the remote machine for mount :
/dev/hda1 on / type ext2 (rw)
yourmachine:/ on /mnt type nfs (rw)
yourmachine:/usr on /mnt/usr type nfs (rw)
When you issue the command :
mount -t nfs remote:/ on /mnt
.... you are only mounting the root filesystem on the remote
machine onto your machine. The nfs mounts are not mounted unless you ask
for it. This does not cause recursion. If havent tried to see what would
happen if you issued 'mount -t nfs remote:/mnt /mnt', but that should
cause recursion. My point is that this is not something that would happen
automatically : you would have to deliberately invite it.
My guess is that nfs mounting a filesystem from a remote machine
where it is also an nfs filesystem will not be permitted for two reasons :
1. Security : Lets say machine A gives permission to machine B and not to
machine C to remote mount its exported filesystems. If machine B exports
its nfs mounted filesystem of machine A and give permission to machine C
to mount it, then machine A's security will have been defeated.
2. Performance : The above scenario is stupid performance-wise. Machine C
should be permitted to mount machine A directly, rather than going through
another level of indirection by nfs mouting it through B.
Kenneth
There is no such thing as luck. 'Luck' is nothing but an absence of bad luck.
On Thu, 11 Mar 1999, new bee wrote:
> Hello commune,
>
> May sound silly, but gotta ask. I permit 2 users to mount some remote
> machine's dir. Is it possible for both of them to having that mounted at the
> same time but at different mount points?
>
> Also, if that other remote machine has already mounted my machine, wont it
> result in nested recursive mounts? (man <mount> or <fstab> does not address
> this). If this is so, what will be the permissions of that mount (i.e. some
> dir on my machine, remounted recursively on my machine itself)
>
> -nB
>
>
> On Thu, 11 Mar 1999 12:58:27 +0200, Bogdan Taru wrote:
>
> > Hi,
> >
> > In order to allow users mount the floppy, you have to make an entry in
> > '/etc/fstab'. For example:
> >
> > /dev/fd0 /mnt/flop ext2 noauto,user 0 0
> >
> > You have to add 'noauto' because otherwise the system tryies to mount
> > the floppy every time it boots. 'user' specifies that every user is able
> > to mount the floppy.
> > More info: man fstab.
> >
>
>
>
>
> _______________________________________________________
> Get your free, private email at http://mail.excite.com/
>