From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fdbfe41740cb0922,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-23 19:47:28 PST Path: bga.com!news.sprintlink.net!news.clark.net!usenet From: mjf@clark.net (Marc Fraioli) Newsgroups: comp.unix.osf.osf1 Subject: Re: Will this ever be answered??? Date: 24 Aug 1994 00:32:18 GMT Organization: Fraioli's Linux Hacking and Chowder Society Message-ID: <33e4ei$d20@clarknet.clark.net> References: <1994Aug23.150750.620@ecc.tased.edu.au> Reply-To: mjf@clark.net NNTP-Posting-Host: mjf_ppp.clark.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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