* Re: Will this ever be answered???
[not found] <1994Aug23.150750.620@ecc.tased.edu.au>
@ 1994-08-24 0:32 ` Marc Fraioli
0 siblings, 0 replies; only message in thread
From: Marc Fraioli @ 1994-08-24 0:32 UTC (permalink / raw)
In article 620@ecc.tased.edu.au, it_jim@ecc.tased.edu.au (Jim Palfreyman) writes:
>This question has appeared a number of times and no one has answered it. I will
>try again.
>
>I want to change the message that appears *before* the login: prompt. For LAT
>connections the /etc/gettydefs file can be modified. This has the challenge
>that the maximum length of a gettydef entry is 255 characters. How can a larger
>message be displayed.
>
>Secondly connections via telnet run the telnetd. This seems to have the login
>message built into the code. What is the proper way of changing this?
>
Well, you could always change inetd.conf so that it invokes something like
/usr/local/bin/my_login_banner instead of telnetd. Then my_login_banner
could look like:
printf("What I want to say\n");
execl ("/usr/sbin/telnetd", "/usr/sbin/telnetd", (char *) NULL);
Maybe the system provides a better way, but this at least works, despite
being a little inelegant. I've seen it done on Suns, but it should work
the same way...
---
Marc Fraioli | "They couldn't hit an elephant at this dist- "
mjf@clark.net | - Last words of Union General John Sedgwick,
| Battle of Spotsylvania Court House, U.S. Civil War
^ permalink raw reply [flat|nested] only message in thread