[814] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: bug in login in Colgate

daemon@ATHENA.MIT.EDU (Michael K. Johnson)
Thu Oct 24 20:03:23 1996

To: redhat-list@redhat.com
cc: Levente Farkas <lfarkas@u-szeged.hu>
From: "Michael K. Johnson" <johnsonm@redhat.com>
In-reply-to: Your message of "Thu, 24 Oct 1996 18:28:25 CDT."
             <199610242328.TAA30786@redhat.com> 
Date: Thu, 24 Oct 1996 20:01:15 -0400
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


Wierdl Mate writes:
>This is interesting: For me, completely the opposite: I do not have
>/etc/nologin, I login at tty2 (listed in /etc/securetty) as a user,
>then I try `login'. The `login:' prompt flashes for a second, then it
>disappears and, to my astonishment, I find myself logged out!
>
>The same happens if I login as root!

Oops.  I misread that the first time I answered.

That is, believe it or not, standard Linux behaviour.  Linux's login
is unusual in that it calls the "vhangup()" function to reset the
tty; it's rather like pressing a "Secure Attention Key" (a "SAK")
on a terminal.  It's been this way for several years, at least, and
we haven't changed it.

If you want to change this behaviour for yourself, you can do so
by removing the call to vhangup() in the login source, but I can't
*guarantee* that the result will be good.

If you want to use "login" on the command line like that, I recommend
aliasing "login" to "exec su -"

Hope this helps,

michaelkjohnson

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



--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post