From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6ab3e51f8e3099ac0d4b820be648aa19.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199707100248.VAA24574@trurl.mtu.edu> Date: Wed, 9 Jul 1997 21:48:17 -0500 (CDT) From: Andy Isaacson Subject: Re: rsh, .rhosts and pam In-Reply-To: <199707091428.AA15406@maxwell.meridiantc.com> Once upon a time, Steve Borho said: > > > I would like to be able to run a rsh on my account from a > > remote machine and from the same machine. I edited .rhosts in the > > usual way but I get a "permission denied". If I try a rlogin > > I get prompted for the password. I guess one has to set up > > correctly the /etc/pam.conf - but how ? > > If I change the line > > rsh auth required /lib/security/pam_rhosts_auth.so > > to > > rsh auth sufficient /lib/security/pam_rhosts_auth.so > > any user (even without .rhosts entry) can run a remote shell. Any > > ideas ? > > > remove group read-write access to the .rhosts file Well, as an additional data point, I have experienced similar problems with rlogind ignoring my .rhosts files. Permissions were set correctly and all. Oddly, rlogin worked correctly if the host I was logging in _from_ had a hostname of at least (exactly?) 8 characters. I was very perplexed by this. I eventually straced rlogind and watched what it was doing. Instead of doing a reverse lookup on the IP address (like SunOS's rlogind -- a very bad thing to do) it iterates through the .rhosts file, checking the IP address of each listed host in turn. Something in the PAM code was causing it to fail to recognize hosts with names of fewer than 8 characters. I never traced it further than that. That was also on RedHat 4.0, and might be fixed in later releases. My workaround was to install ssh. :> just my .02; -andy -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com