delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/09/09:17:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "Joe" <jdenicola AT maxwellsystems DOT com>
Subject: Re: rcp problem
Date: Tue, 9 Dec 2003 09:17:19 -0500
Lines: 60
Message-ID: <br4lhg$tbt$1@sea.gmane.org>
References: <Law11-OE35zzubChbts00005b07 AT hotmail DOT com>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

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 AT hotmail DOT com> wrote in message
news:Law11-OE35zzubChbts00005b07 AT hotmail DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019