Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!ddgg0881 From: ddgg0881@uxa.cso.uiuc.edu Newsgroups: comp.unix.questions Subject: re: rcp as guest Message-ID: <113700010@uxa.cso.uiuc.edu> Date: 28 Jul 89 20:09:00 GMT Lines: 40 Nf-ID: #N:uxa.cso.uiuc.edu:113700010:000:1612 Nf-From: uxa.cso.uiuc.edu!ddgg0881 Jul 28 15:09:00 1989 In article <113700007@uxa.cso.uiuc.edu> I write: > > > I would like to be able to recursively copy directories from a >remote machine onto my local machine. The problem is that I can >only log onto the remote machine as guest and I would like to >write onto my own machine with super user authority. To use rcp, >though, I have use the same logon on my local machine as I have on the >remote machine so I can only write to my own machine as guest. Does >anyone know of a solution to this problem? Thanks to everyone who sent answers to this question. Given the variety of answers I got, it seems fair to say that this is a genuinely confusing point. The answer is probably in the manual but rcp is one of those things ofter missing from manuals (e.g. absent from my manual for my version of *ix). To add to the confusion there has been a change of syntax in the most recent version of rcp. Of all the answers I got, the following is the only one that seemed entirely correct: >Say what ? Rcp supports `user@machine:file' (or `machine.user:file' in 4.2 >based systems). What you need to do is on the remote machine as guest, creat >a file called `.rhosts' with `local-machine-name root', the run e.g. > > rcp -rp guest@remote-machine:dir . > >Remember to remove the `.rhosts' file once you've done with it. > >Rob >-- >UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 >JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk >Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England Dale Gerdemann U. of Ill, Beckman Institute dale@tarski.cogsci.uiuc.edu