X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0	tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <1338283764.67862.YahooMailClassic@web28614.mail.ukl.yahoo.com>
Date: Tue, 29 May 2012 10:29:24 +0100 (BST)
From: Marilo <narium85-mlscar@yahoo.co.uk>
Reply-To: narium85-mlscar@yahoo.co.uk
Subject: why is rsh not running normally but is running rlogin?
To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4T9Tqnl030369

As mentioned, I am just trying rexec/rsh/rlogin, just as a test, on my few computers. I know ssh is more secure..

I have uncommented these lines in inetd.conf
shell   stream  tcp     nowait  root    /usr/sbin/tcpd rshd -L
login   stream  tcp     nowait  root    /usr/sbin/tcpd rlogind
exec    stream  tcp     nowait  root    /usr/sbin/tcpd rexecd


When I try to run rsh locally, this happens
$ rsh 127.0.0.1 ls
Permission denied.

It doesn't even ask for a password.

When I do rsh without a command, it launches rlogin. I know because it asks for a password I enter it push ENTER . Then it logs me in, and I run the ps command, and I see rlogin not rsh.  And if I give a wrong username then I start doing ctrl-c ctrl-z..  it says rlogin.
$ rsh -l sdf 127.0.0.1
Password:
Login incorrect
login: Password:
Login incorrect
login: rlogin: connection closed.


Is that normal, and which implementations of rsh launch rlogin? BSD? GNU? 

And why won't it run when I add a command?
rexec runs locally with a command, but rsh doesn't.





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


