This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rcp problem


On the linux system, if you "ping mohanlal", does it display the correct IP
address for the Windows system (reported by "ipconfig" command on Windows)?

Are you using the Cygwin rcp or the native Windows rcp command?  The native
Windows rcp command sends the login name exactly as it is set up in Windows
(including upper case characters) and this can cause problems.

If type just "rcp" at a prompt in Windows, if it displays something like
this:

Copies files to and from computer running the RCP service.

RCP [-a | -b] [-h] [-r] [host][.user:]source [host][.user:] path\destination

then that is the native Windows rcp command, and your problem could have
something to do with case of the user name (but that is just a guess).

rcp operates through the rsh protocol, which is fairly simple.  It sends the
local user, remote user, and command to the server.  The server then looks
up a name for the client IP address (fails if it cannot), then checks
$HOME/.rhosts and /etc/hosts.equiv to see if the hostname and/or
hostname/user is allowed (fails if not found there).  Then it makes sure the
local and remote users (the same user unless an override is specified in the
command) are valid users (passwords have not expired, valid home directory,
etc.).  If all is OK, it should allow the rsh/rcp.


"mohanlal jangir" <mohanlaljangir@hotmail.com> wrote in message
Law11-OE35zzubChbts00005b07@hotmail.com">news:Law11-OE35zzubChbts00005b07@hotmail.com...
> > Some things to check:
> >
> > - the .rhosts file on Linux must be owned by you or by root and have
> > permissions of 0600.
> Yes, I checked it. It has proper permissions.
>
> > - did you use a hostname or IP address in .rhosts? It must be a
> > hostname. Also, ping that hostname and make sure it displays the IP
> > address of the cygwin system to be sure it resolves correctly.
> Well, I used hostname only. I just posted problem with IP Address for
> avoiding any confusion. Both machine are well connected and I able to ping
> each other.
>
> > - passwords being the same does not matter - rcp does not use
> > passwords
> >
> Oops, I forgot. Thanks for reminding.
>
> I am able to rcp on the same machine from same machine i.e.  "rcp
> /my_file.txt  knuth:/home/mohanlal/temp" works very well. In
> /home/mohanlal/.rhosts of knuth, I have given permission to knuth (the
linux
> machine) and mohanlal (windows machine running cygwin). But from machine
> mohanlal  "rcp.exe  some_file  knuth:/home/mohanlal/temp" doesn't work.
> Any other clue?
>
> Regards
> Mohanlal
>




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]