From owner-freebsd-current Wed Apr 10 19:29: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from pinkfloyd.Colorado.EDU (pinkfloyd.Colorado.EDU [128.138.196.85]) by hub.freebsd.org (Postfix) with ESMTP id A3FBD37B404 for ; Wed, 10 Apr 2002 19:28:56 -0700 (PDT) Received: from pinkfloyd.Colorado.EDU (orrie@localhost [127.0.0.1]) by pinkfloyd.Colorado.EDU (8.10.1/8.10.1/UnixOps+Hesiod) with ESMTP id g3B2Ssk00320 for ; Wed, 10 Apr 2002 20:28:54 -0600 (MDT) Message-Id: <200204110228.g3B2Ssk00320@pinkfloyd.Colorado.EDU> To: current@freebsd.org Subject: rshd on 5.0-DP1 Date: Wed, 10 Apr 2002 20:28:52 -0600 From: Orrie Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In giving the iso 5.0-DP1 a try I ran into the following. I have a clean and was wanting to create a simple trust between two systems using rsh and /.rhosts authentication (yea, i know rsh is bad but our silly software can run over ssh yet). So, I did the usual steps: created /root/.rhosts with an entry as follows: trustedhostname.mydomain.com root and of course "chmod 600 /root/.rhosts" uncommented the following line from /etc/inetd.conf shell stream tcp nowait root /usr/libexec/rshd rshd and fired up inetd: clienthost#> inetd -wW I've done this a million times but on the 5.0-DP1 system, the following occurs: orrie@trustedhost> sudo rsh clienthost echo foo rshd: Login incorrect. orrie@trustedhost> As you can see, I get the error "rshd: Login incorrect". I removed the /etc/hosts.allow so it is not a tcp wrapper issue and nothing is special in /etc/login.conf - it is a base install...no ports even. Now here is the odd thing. If I replace /usr/libexec/rshd with an rshd binary from a FreeBSD 4.5 box and make the following link (needed since a 4.5 rshd binary needs to link to it): ln -s /usr/lib/libc.so.5 /usr/lib/libc.so.4 The above "sudo rsh clienthost echo foo" command works fine. So, it seems like something with the 5.0-DP1 rshd. I didn't see anything special in the man page that changed rshd's functionality. Can someone point out where I'm being stupid? Orrie orrie@colorado.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message