From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076337821579.tru64-unix-managers.marc@archive.invalid> From: Simon Amor Date: Wed, 21 Aug 1996 14:39:14 +0000 To: tru64-unix-managers Subject: SUMMARY: login messages X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076337821579 My original post: ----------------- I'm trying to set up an alpha and would like to change the message that users get before they login (via telnet, not at the console). At the moment, it just says Digital UNIX (zen) (ttyp4) login: but I'd like it to say something instead of Digital UNIX (zen).. for example Central Mail Server (ttyp4) login: Answers: -------- Thanks for the quick responses, several people have suggested using the tcp_wrappers package available from the following address given by Kent R Arnott ftp.tamucc.edu /pub/unix/network/tcp_wrappers_7.2.tar.gz (Note: this is an older version, current is 7.4 I think) Mohan Kannapareddy suggested using /etc/issue which although apparently undocumented, is similar to BSD programs. Some investigation with this method shows it doesn't work with DU 3.2D-1 but it does with DU 4.0 A slightly easier but less flexible method, the one I've gone for, is to modify /etc/gettydefs. Thanks to Bob Morse for this solution. --------- Add a line that looks like this: default###\r\n\n\t YOUR TEXT HERE \r\n\n\n\n#default There is a limit of 132 characters (I think) that you can enter. Also, the default line must be the first line after the comments in that file. --------- After a bit of investigating, it would appear that the 132 character limit mentioned is 80 characters and applies to just the login prompt text and not the whole line in /etc/gettydefs The 80 characters do not include any \'s used for control codes such as \n or \r (eg \n\r is 2 characters not 4) Expansions like %t (tty) and %h (hostname) are counted as 2 characters and not the length after expansion - perhaps the total limit after expansion is 132 ? Thanks again to all who replied, Simon -- Simon Amor | Voice: +44 (0)116 257 7156 Network & Communications Group | mailto:spa@dmu.ac.uk De Montfort University, Leicester,UK | http://www.dmu.ac.uk/~spa/