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_at_butler.cc.tut.fi>
"Matthew Calthrop +44 (0) 171 542 5317" <matthew.calthrop_at_reuters.com>
Christian Miranda <cmiranda_at_gmd.com.pe>
Lucio Chiappetti <lucio_at_ifctr.mi.cnr.it>
Gyula Szokoly <szgyula_at_skysrv.Pha.Jhu.EDU>
"O. Boebion" <boebion_at_bbrother.phys.univ-tours.fr>
"Craig C. Hopewell" <chopewel_at_redwood.dn.hac.com>
David Krinsky <krinsky_at_hcs.harvard.edu>
Blue Moon Network Administrator <root_at_net.bluemoon.net>
Mandell Degerness of ITSD 387-5877 <MDEGERNESS_at_galaxy.gov.bc.ca>
Phil Rand <prand_at_paul.spu.edu>
nvck_at_sunws2.cmc.stph.net
PETER MILNES <p_milnes_at_BANKS.NTU.EDU.AU>
Juergen Bock <bock_at_poppix.dbf.ddb.de>
waetzig_at_hrz.uni-kassel.de
paulo_at_dexel.co.za
Jean Schuller <schuller_at_crnal4.in2p3.fr>
Richard L Jackson Jr <rjackson_at_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_at_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_at_venus.javeriana.edu.co
Received on Tue Feb 04 1997 - 18:14:54 NZDT