Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: rcp as guest Message-ID: <18705@mimsy.UUCP> Date: 24 Jul 89 06:58:40 GMT References: <113700007@uxa.cso.uiuc.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 39 [note that rcp and rsh here refer to the 4BSD utilities] In article <113700007@uxa.cso.uiuc.edu> ddgg0881@uxa.cso.uiuc.edu writes: >... To use rcp, though, I have use the same logon on my local machine >as I have on the remote machine .... Someone else has already suggested using rsh and tar instead of rcp. To complete the answer, though, it is possible (even easy) to rcp files across different account names. For instance, although I am `chris@umdhost.umd.edu', I am `torek@ucbhost.berkeley.edu'; to copy files between here and Berkeley, I could run [umd1] rcp torek@ucbhost.berkeley.edu:files dir [umd2] rcp files torek@ucbhost.berkeley.edu:dir [umd3] rlogin ucbhost.berkeley.edu -l torek [ucb1] rcp chris@umdhost.umd.edu:files dir [ucb2] rcp files chris@umdhost.umd.edu:files Note that for this to work, chris@umdhost.umd.edu must be in the .rhosts file of torek@ucbhost.berkeley.edu (for rcp run from umdhost), and torek@ucbhost.berkeley.edu must be in the .rhosts file of chris@umdhost.umd.edu (for rcp run from ucbhost). (These entries tend not to be there, for security reasons. We will all run Kerberos soon and use a different approach entirely anyway.) Note also that 4.2BSD had a different syntax: rather than `me@host:file', one had to write `host.me:file'. The period was found by scanning backwards from the colon, so that `host.long.name.me' worked. Of course, this meant that even where one had the same login name on hosts in different domains, one had to type one's own name---running like rcp ucbhost.berkeley.edu:file dir would try to connect to `ucbhost.berkeley' as user `edu', rather than `ucbhost.berkeley.edu' as user `$USER'. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris