SUMMARY - rcp and mounting

From: Frank Greco (fgreco@shearson.com)
Date: Mon Jul 20 1992 - 10:54:17 CDT


I recently asked:

>Does anyone know why would "rcp" *mount* the filesystem of the remote
>file on the local machine? Nothing in the man pages (that I found)
>says anything abount mounting.
>
>I wanted to avoid NFS mounting when getting this file (I cannot use ftp
>or telnet).

First of all, I had meant to say "automounting"... sorry for the confusion.

It turns out that rcp uses rsh to do its bidding, so the rsh was running
through the user's .cshrc. During the execution of the .cshrc, there
were some directories "touched" that triggered the automounts.

Frank G.

Thanks to the following folks:

===========================================================================
From: Jim Davis <jdavis@noao.edu>

I'm not sure I follow the scenario... but I'll take a stab. Is the remote
file system automounted? If your target system is automounted on the remote
machine, and isn't currently mounted, then any access -- from rcp, or
anything else -- and the automounter will spring into action and mount the
critter.

===========================================================================
From: Steve Kilbane <Steve_Kilbane@gec-epl.co.uk>

Yeah, I know the feeling. Personally, I tend to avoid rcp & rsh, due to the
.rhosts file (nasty, nasty!). I use rexec, which asks for a password (I can
send you the source if you'd like it - it's just written with rexec(3)):

$ rexec machine cat remote_file > local_file

Not wonderful, but it means the remote machine doesn't have to trust the local
machine.

===========================================================================
From: Kevin Sheehan <kalli!kevin@fourx.aus.sun.com>

rcp shouldnt, but the automounter might...

===========================================================================
From: miker@sbcoc.com Thu Jul 16 05:12:20 1992

Your rcp command must be specifying (on the local machine) an
automount-controlled directory. What's the exact command?
And what's your auto.master file or NIS map look like?

===========================================================================
From: jpl@allegra.att.com (John P. Linderman)

My best guess is that something in your search path is triggering
an automount of the filesystem in question. The rcp we use most
assuredly does NOT mount anything.

===========================================================================
From: stern@sunne.east.sun.com (Hal Stern - NE Area Systems Engineer)

why would rcp mount the filesystem? i didn't see any
calls to "mount" in there, but you could run trace on
it and see what it does (do this as root, since
mount runs setuid, which confuses trace)

[hal also sent this:]

ah ha....you said mount, not automount
 
running an rsh will trigger an automount because it starts
a shell. running your .cshrc touches everything in your
path, which probably hits some automount points....

[hal also sent this very useful tidbit of information:]

ps. NIS+ doesn't really change NFS performance....
AFS won't buy you much -- the problem is the speed of
IP-based protocols over the wire. mount things
read-only, and set actime to about 30 minutes, and
the results will be indistinguishable from AFS

===========================================================================
From: bwalker@auratek.com (Brad Walker)

rcp calls rsh for user login and validation of the creditials. as a result
your home directory or something is getting automounted. why worry, the
mount will disappear over time.

===========================================================================
From: mdl@cypress.com (J. Matt Landrum)

It could be that it has to do with amd.

===========================================================================
From: shj@ultra.com (Steve Jay)

>Does anyone know why would "rcp" *mount* the filesystem of the remote
>file on the local machine? Nothing in the man pages (that I found)
>says anything abount mounting.

Rcp definitely doesn't mount anything. If you are getting filesystems
mounted without explicitly asking for them, I'd guess that automounter is
running on your system, and it's doing it.

===========================================================================
From: uunet!uunet!auratek.com!bwalker (Brad Walker)

rcp calls rsh for user login and creditial validation. as a result
you are getting automounted. why worry, automount will unmount the
directories over time.

--
+-On Assignment at: Lehman Brothers-+-Office: Mercury Technologies, Inc.-+
| World Financial Center, 11th Floor| PO Box 529                         |
| New York City, NY 10285           | Fanwood, NJ 07023                  |
| email: fgreco@shearson.com        | email: fgreco@mercury.com          |



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:45 CDT