Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* rsh, .rhosts and pam
@ 1997-07-09 13:37 Claus Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Claus Denk @ 1997-07-09 13:37 UTC (permalink / raw)


Hi all,

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 ?

regards, Claus Denk

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* rsh, .rhosts and pam
@ 1997-07-09 13:46 Claus Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Claus Denk @ 1997-07-09 13:46 UTC (permalink / raw)


sorry,

I forgot to tell you: I am using RedHat 4.0. My pam version
is 0.50-17. I have been reading the 4.0 errata (regarding pam),
but no problem with rsh is mentioned.

Claus Denk

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rsh, .rhosts and pam
       [not found] <33C39407.12E1E0CF@cica.es>
@ 1997-07-09 14:28 ` Steve Borho
  1997-07-10  2:48   ` Andy Isaacson
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Borho @ 1997-07-09 14:28 UTC (permalink / raw)


> 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

Steve Borho                       
Network Engineer                   

Voice:  314-532-7700  ext. 241
FAX:    314-532-3242                            
Web:    www.meridian.com

Meridian Technology Corporation
11 McBride Corporate Center Drive
Suite 250
Chesterfield, Missouri  63005-1407

#include <std/disclaimer.h>

--
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rsh, .rhosts and pam
  1997-07-09 14:28 ` Steve Borho
@ 1997-07-10  2:48   ` Andy Isaacson
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Isaacson @ 1997-07-10  2:48 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-07-10  2:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-09 13:46 rsh, .rhosts and pam Claus Denk
     [not found] <33C39407.12E1E0CF@cica.es>
1997-07-09 14:28 ` Steve Borho
1997-07-10  2:48   ` Andy Isaacson
  -- strict thread matches above, loose matches on Subject: below --
1997-07-09 13:37 Claus Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox