Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
[parent not found: <Pine.LNX.3.93.960911091801.8445B-100000@redhat.com>]
[parent not found: <Pine.LNX.3.93.960910091344.22699E-100000@redhat.com>]
* Re: how to rsh/rlogin as root with PAM ?
@ 1996-09-10 18:27 Michael K. Johnson
  1996-09-10 23:50 ` Harald Koenig
  0 siblings, 1 reply; 17+ messages in thread
From: Michael K. Johnson @ 1996-09-10 18:27 UTC (permalink / raw)


Harald Koenig writes:
>> >- with the following line in /etc/pam.conf
>> >
>> >	rlogin  auth       required     /lib/security/pam_securetty.so
>> >
>> >the first root rlogin query for a password doesn't work; login name and
>> >password have to be entred again (no problem for non-root users).
>> >without that line, entring the root password works for the first time.
>> 
>> It's probably falling through to login.  Have you disabled securetty
>> checking for login?
>
>to accept the first rlogin password only the rlogin pam_securetty setting is significant
>(or adding "tty" to /etc/securetty). it doesn't matter if login pam_securetty
>is commented out or not.

Unless you put tty in /etc/securetty, root login should fail.  With rlogin,
if authentication fails, it falls through to *login*, and login authenticates
you.  Without tty in your /etc/securetty, the securetty line in /etc/pam.conf
should keept root from loging in at that point, too.

If you've put tty in /etc/securetty, then unless rhosts *also* allows the
authentication, you will be prompted for your password by the rlogin
authentication, but it will fail anyway.  *Then* login, which doesn't do
rhosts authentication, will allow your login to succeed.

michaelkjohnson

"Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: how to rsh/rlogin as root with PAM ?
@ 1996-09-10 18:19 Michael K. Johnson
  0 siblings, 0 replies; 17+ messages in thread
From: Michael K. Johnson @ 1996-09-10 18:19 UTC (permalink / raw)


Harald Koenig writes:
>as far as I can see adding "tty" to /etc/securetty has exactly the same
>effect as commenting out the pam_securetty lines for rsh&rlogin

That should probably be true for rlogin, because you do log in on
a pty, which is a tty.  However, it shouldn't be true for rsh; I'm
pretty sure I know what the problem is, and it's on my list of bugs
to fix.

michaelkjohnson

"Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: how to rsh/rlogin as root with PAM ?
@ 1996-09-10 15:06 Michael K. Johnson
  0 siblings, 0 replies; 17+ messages in thread
From: Michael K. Johnson @ 1996-09-10 15:06 UTC (permalink / raw)


Harald Koenig writes:
>not now that rlogin/rsh work I've two more problems:
>
>- without having a ~root/.rhosts file  rsh/rlogin succeeds for root
>when I have a /etc/hosts.equiv entry for the source host which should
>not be (for all other systems I know /etc/hosts.equiv doesn't work for root).

Thank you very much for finding this.  We've fixed it in our sources,
and our next release of pam will include it.  I'll drop it into the
updates directory on our ftp site.

>- with the following line in /etc/pam.conf
>
>	rlogin  auth       required     /lib/security/pam_securetty.so
>
>the first root rlogin query for a password doesn't work; login name and
>password have to be entred again (no problem for non-root users).
>without that line, entring the root password works for the first time.

It's probably falling through to login.  Have you disabled securetty
checking for login?

michaelkjohnson

"Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <Pine.LNX.3.93.960909104628.28228J-100000@redhat.com>]
[parent not found: <Pine.LNX.3.94.960908155253.3290A-100000@porky.redhat.com>]
* how to rsh/rlogin as root with PAM ?
@ 1996-09-07  9:44 Harald Koenig
  1996-09-08 19:53 ` Erik Troan
  0 siblings, 1 reply; 17+ messages in thread
From: Harald Koenig @ 1996-09-07  9:44 UTC (permalink / raw)


having installed ELF 
	-rwxr-xr-x      226527 Aug 26 22:49 pam-0.50-13.axp.rpm*
	-rwxr-xr-x      131684 Aug 27 22:54 tcp_wrappers-7.4-3.axp.rpm*

I can't rsh into the alpha box anymore as root (other UIDs not tested),
I get "Permission denied."  having correct entries in ~root/.rhosts

trying to rlogin as root gives the passwrd prompt and hangs...

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

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

end of thread, other threads:[~1996-09-11 17:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199609101506.LAA30938@tristan.redhat.com>
1996-09-10 17:59 ` how to rsh/rlogin as root with PAM ? Harald Koenig
     [not found] <Pine.LNX.3.93.960911091801.8445B-100000@redhat.com>
1996-09-11 17:59 ` Thomas Bogendoerfer
     [not found] <Pine.LNX.3.93.960910091344.22699E-100000@redhat.com>
1996-09-10 17:10 ` Harald Koenig
1996-09-11  5:29 ` Thomas Bogendoerfer
1996-09-11 13:19   ` Erik Troan
1996-09-10 18:27 Michael K. Johnson
1996-09-10 23:50 ` Harald Koenig
  -- strict thread matches above, loose matches on Subject: below --
1996-09-10 18:19 Michael K. Johnson
1996-09-10 15:06 Michael K. Johnson
     [not found] <Pine.LNX.3.93.960909104628.28228J-100000@redhat.com>
1996-09-09 15:50 ` Harald Koenig
1996-09-10 13:12   ` Erik Troan
1996-09-10  4:41 ` Thomas Bogendoerfer
1996-09-10 13:14   ` Erik Troan
     [not found] <Pine.LNX.3.94.960908155253.3290A-100000@porky.redhat.com>
1996-09-09  8:23 ` Harald Koenig
1996-09-09 14:47   ` Erik Troan
1996-09-07  9:44 Harald Koenig
1996-09-08 19:53 ` Erik Troan

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