SUMMARY: login messages

From: Simon Amor <spa_at_dmu.ac.uk>
Date: Wed, 21 Aug 1996 15:39:14 +0100 (BST)

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 <karnott_at_falcon.tamucc.edu>

      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 <mkannapa_at_ford.com> 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 <rem_at_math.ams.org> 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_at_dmu.ac.uk
De Montfort University, Leicester,UK  | http://www.dmu.ac.uk/~spa/
Received on Wed Aug 21 1996 - 17:13:14 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT