From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810091.tru64-unix-managers.marc@archive.invalid> From: "Carlos Medina --Admon. Sistema" Date: Tue, 04 Feb 1997 16:08:12 +0000 To: tru64-unix-managers Subject: SUMMARY: Message before login prompt X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810091 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 "Matthew Calthrop +44 (0) 171 542 5317" Christian Miranda Lucio Chiappetti Gyula Szokoly "O. Boebion" "Craig C. Hopewell" David Krinsky Blue Moon Network Administrator Mandell Degerness of ITSD 387-5877 Phil Rand nvck@sunws2.cmc.stph.net PETER MILNES Juergen Bock waetzig@hrz.uni-kassel.de paulo@dexel.co.za Jean Schuller Richard L Jackson Jr 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