From: rem () MATH ! AMS ! ORG
To: tru64-unix-managers
Subject: SUMMARY: telnet message
Date: Thu, 06 Jun 1996 20:24:52 +0000 [thread overview]
Message-ID: <96076333621233.tru64-unix-managers.marc@archive.invalid> (raw)
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@xncse1.orfs.ornl.gov>
Hellebo Knut <Knut.Hellebo@nho.hydro.com>
Miguel Mena <migi@furka.enet.dec.com>
Phil Rand <prand@paul.spu.edu>
Huw Davies <H.Davies@latrobe.edu.au>
Gordon Smith <Gordon.Smith@UNE.Edu.AU>
Edward Murphy <emurphy@www.uno.edu>
Anil Khullar <Anil.Khullar@mailhub.gc.cuny.edu>
Graham Orndorff <gorndorf@mv.us.adobe.com>
Paden <khalid@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@xncse1.orfs.ornl.gov>
Subject: re: telnet message
To: rem@MATH.AMS.ORG
Message-Id: <199606061731.NAA02400@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@ornl.gov
ORNL-CPED
423-574-5259
Bob Morse
System Administrator
American Mathematical Society
next reply other threads:[~1996-06-06 20:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-06 20:24 rem [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-09 16:29 SUMMARY : Telnet Message Manish Vashi
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox