SUMMARY: another "Changing login text"

From: Richard Bemrose <rb237_at_phy.cam.ac.uk>
Date: Fri, 26 Jun 1998 00:19:18 +0100 (BST)

Hi gurus,

Thanks go to the following people for their quick replies:
        Sean O'Connell <sean_at_stat.Duke.EDU> (within 4 minutes!!!)
        Bruce Kelly <kellybe_at_llnl.gov>
        "Dr. Tom Blinn, 603-884-0646" <tpb_at_zk3.dec.com>
        "William H. Magill" <magill_at_isc.upenn.edu>

In my original poster I asked how one could display a message before the
telnet login prompt running Digital UNIX V3.2.

I must first point out an update to Harry Hahn's summary as reported by
Tom Blinn. Under Digital UNIX V4.0 the correct file name for the banner is
/etc/issue (run: strings /usr/sbin/getty | grep etc). Although
/etc/issue.net works the 'fix' was introduced around 1995.

Returning to Digital UNIX V3.2 (in fact also probably other vendors),
William H. Magill suggested the following modification to the
/etc/inetd.conf: (all on one line!)
-- cut --
telnet stream tcp nowait root /usr/local/bin/telnet-banner /usr/sbin/telnetd telnetd
-- cut --

where /usr/local/bin/telnet-banner is:
-- cut --
#!/bin/sh

cat /etc/issue

exec $*
-- cut --

...and created with file permission of 755.


Isn't life that simple at times B:-)

Regards,
Rich

 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\
/_/ Richard A Bemrose /_\ Polymers and Colloids Group \_\
/_/ email: rb237_at_phy.cam.ac.uk /_\ Cavendish Laboratory \_\
/_/ Tel: +44 (0)1223 337 267 /_\ University of Cambridge \_\
/_/ Fax: +44 (0)1223 337 000 /_\ Madingley Road \_\
/_/ (space for rent) / \ Cambridge, CB3 0HE, UK \_\
 /_/_/_/_/_/_/ http://www.poco.phy.cam.ac.uk/~rb237 \_\_\_\_\_\_\
             "Life is everything and nothing all at once"
              -- Billy Corgan, Smashing Pumpkins
Received on Fri Jun 26 1998 - 01:20:15 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT