tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Message before login prompt
@ 1997-02-04 16:08 Carlos Medina --Admon. Sistema
  0 siblings, 0 replies; only message in thread
From: Carlos Medina --Admon. Sistema @ 1997-02-04 16:08 UTC (permalink / raw)
  To: tru64-unix-managers



Hi managers, my original posting was:

>We need to print a text message before the login prompt appears.
>We know that this feature exists on other platforms like AIX, in which
>you just put the text file in /etc/issue and it is displayed, but we
don't
>have a clue on how to do the same under DU. We run DU 4.0A.

I have received several answers. Thanks to:
Matti Saarinen <mjs@butler.cc.tut.fi>
"Matthew Calthrop +44 (0) 171 542 5317" <matthew.calthrop@reuters.com>
Christian Miranda <cmiranda@gmd.com.pe>
Lucio Chiappetti <lucio@ifctr.mi.cnr.it>
Gyula Szokoly <szgyula@skysrv.Pha.Jhu.EDU>
"O. Boebion" <boebion@bbrother.phys.univ-tours.fr>
"Craig C. Hopewell" <chopewel@redwood.dn.hac.com>
David Krinsky <krinsky@hcs.harvard.edu>
Blue Moon Network Administrator <root@net.bluemoon.net>
Mandell Degerness of ITSD 387-5877 <MDEGERNESS@galaxy.gov.bc.ca>
Phil Rand <prand@paul.spu.edu>
nvck@sunws2.cmc.stph.net
PETER MILNES <p_milnes@BANKS.NTU.EDU.AU>
Juergen Bock <bock@poppix.dbf.ddb.de>
waetzig@hrz.uni-kassel.de
paulo@dexel.co.za
Jean Schuller <schuller@crnal4.in2p3.fr>
Richard L Jackson Jr <rjackson@portal.gmu.edu>


It seems this can be done in a lot of ways:

1- DU 4.0 supports /etc/issue!!  Although we still don't find the
documentation anywhere, that's the way we took.  You just put the ascii
message you want in this file and voila! (Thanks to David Krinsky, 
Santosh Krishnan and paulo@dexel.co.za for this response).

2-You can use the last version of tcp_wrappers. You can get if from
ftp.cert.org.  I allows banners in the services you wrapp (telnet, ftp,
rlogin, etc).

3-Modify /etc/gettydefs. You will have to add a line that looks like this:

default###\r\n\n\t YOUR TEXT HERE \r\n\n\n\n#default

The problem with this implementation is that the message seems to have a
limitation of 132 characters.

4-Change the /usr/sbin/telnetd with an script that displays the message
and then runs the original telnetd (only for telnet):

(from Lucio Chiappetti)
#! /bin/sh
#
# for telnet connections
# display a banner
# no banner for console logins and rlogins
#
/usr/bin/clear
/sbin/cat /etc/announce.txt
exec /usr/sbin/telnetd.orig

Some other people suggested /etc/motd, but this file is displayed after
the login prompt.

Regards,

Carlos Medina 
cmedina@venus.javeriana.edu.co

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

only message in thread, other threads:[~1997-02-04 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-04 16:08 SUMMARY: Message before login prompt Carlos Medina --Admon. Sistema

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