tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: another "Changing login text"
@ 1998-06-25 23:19 Richard Bemrose
  0 siblings, 0 replies; only message in thread
From: Richard Bemrose @ 1998-06-25 23:19 UTC (permalink / raw)
  To: tru64-unix-managers

Hi gurus,

Thanks go to the following people for their quick replies:
	Sean O'Connell <sean@stat.Duke.EDU>   (within 4 minutes!!!)
	Bruce Kelly <kellybe@llnl.gov>
	"Dr. Tom Blinn, 603-884-0646" <tpb@zk3.dec.com>
	"William H. Magill" <magill@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@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-25 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-25 23:19 SUMMARY: another "Changing login text" Richard Bemrose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox