SUMMARY: telnet message

From: <rem_at_MATH.AMS.ORG>
Date: Thu, 06 Jun 1996 16:24:52 -0400

As always, this group came through quickly.

The original question was:


>I want to change the message that the users see when they
>telnet into a machine. This is the message that is displayed
>before the password is entered, so this is NOT the /etc/motd


I'd like to the thank the following for responding:

Lester M. Petrie <lmp_at_xncse1.orfs.ornl.gov>
Hellebo Knut <Knut.Hellebo_at_nho.hydro.com>
Miguel Mena <migi_at_furka.enet.dec.com>
Phil Rand <prand_at_paul.spu.edu>
Huw Davies <H.Davies_at_latrobe.edu.au>
Gordon Smith <Gordon.Smith_at_UNE.Edu.AU>
Edward Murphy <emurphy_at_www.uno.edu>
Anil Khullar <Anil.Khullar_at_mailhub.gc.cuny.edu>
Graham Orndorff <gorndorf_at_mv.us.adobe.com>
Paden <khalid_at_enterprise.fnal.gov>


Most of the responses suggested that I get
tcp_wrapper and install that. Which I will
do, someday. But I only needed a quick line
or two to appear. Khalid, Miguel, and Lester
all suggested to modify the /etc/gettydefs
file, which worked just fine once I learned
of the "gotcha's" in that file from Lester.


Thanks again.

------------------------------------------------------
From: Petrie L M <lmp_at_xncse1.orfs.ornl.gov>
Subject: re: telnet message
To: rem_at_MATH.AMS.ORG
Message-Id: <199606061731.NAA02400_at_xncse1.orfs.ornl.gov>
Mime-Version: 1.0
X-Mailer: Ishmail 1.2.1-960507-osf1 <http://www.halsoft.com/products/ishmail>
Content-Type: text/plain
Content-Transfer-Encoding: 7BIT

Hi

The following was posted a couple of weeks ago. A better, but somewhat more
complicated way is to use the "tcpwrappers" package. I am also enclosing some
references from the README file of that package.

(1)

> Does somebody know how to place a message BEFORE the login: prompt?

                                                        5/22/95

This is known to work as described on Digital Unix 3.0 and 3.2.

There is an "undocumented" feature in /etc/gettydefs.

Basically, there is one sentence at the end of the second paragraph in the
gettydefs man page which, once you know the secret, describes it.

  "...If a match is not found,
  the first gettydefs file entry is used; therefore the first entry in get-
  tydefs must be the default entry. The maximum length of each entry is 255
  characters."

This "default" entry is NOT in the standard (ie distributed) /etc/gettydefs
file and is the entry used by telnet.
------------------------<excerpt from /etc/gettydefs>-----------------
# OSF/1 Release 1.0
#
#

default#B9600#B9600# %v(%h)\r\n\r\n Data and Computing \r\n \
        Unauthorized use prohibited \
\n\r#default

console# B9600 HUPCL CS8 CLOCAL # B9600 SANE IXANY TAB3 CLOCAL #\r\n\r\n%v (%h)
%t\r\n\r\n\rlogin: #console
------------------------<cut here>-----------------

The example above uses "line continuation" to place the "one entry line" on
three separate lines.

Two IMPORTANT "gotcha's" ...

The first "NON # line" must be a SPACE, then the "default#" entry.

The TOTAL length of the line (default# to #default) is 255 characters, not
just the message text.

"login:" is automatically appended to the line.



Lester M. Petrie
lmp_at_ornl.gov
ORNL-CPED
423-574-5259



Bob Morse
System Administrator
American Mathematical Society
Received on Thu Jun 06 1996 - 22:43:16 NZST

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