Copyright startup lines <was: SECURITY BUG IN ISC UNIX SYSV386>

Jay Ts jay at metran.UUCP
Fri Feb 22 14:37:37 AEST 1991


In article <1991Feb17.130459.29719 at virtech.uucp>, cpcahil at virtech.uucp (Conor P. Cahill) writes:
> shwake at raysnec.UUCP (Ray Shwake) writes:
> >	On a related issue, both ISC and SCO UNIX *prefix* the login prompt
> >with a node name reference and a couple of new lines. *This* one, I believe,
> >comes out of getty.
> 
> yes, they come out of getty.  Most of it comes out of the /etc/issue file
> that getty reads, so changing that file will get rid of most of the pre-login
> prompt stuff.

If you don't want anything to be printed out of /etc/issue, there is a quick
fix to "get rid" of the "pre-login prompt stuff".  I realize this is kind of
a hack, but I think it's worth mentioning anyway.

NOTE: This problably will not work on all terminals; I use it for the console
and virtual consoles on my own system.

The ANSI-standard "clear screen" escape sequence is ESC-c.  So all you have
to do is modify your /etc/gettydefs file like this (for each entry you use):

console# B9600 [ ... ] # B9600 [ ... ] #^[cConsole Login: #console

                                        ^that ^[ is an ESC character

Thus, the pre-login prompt stuff is cleared off the screen, and users always
get the login prompt in the top left of a nice, clean screen.

It's also possible for the gettydefs login string to print newlines (I've
never tried it myself, but I've seen it in operation) so you can replace
an /etc/issue message with a login string to have messages customized for
each terminal.

If you want to get really fancy (like me) you can put in an escape sequence
to also set screen colors.  Each of my virtual consoles has a differently-
colored login prompt.

				Jay Ts, Director
				Metran Technology
				uunet!pdn!tscs!metran!jay



More information about the Comp.unix.sysv386 mailing list