* SUMMARY : Telnet Message
@ 2003-01-09 16:29 Manish Vashi
0 siblings, 0 replies; 2+ messages in thread
From: Manish Vashi @ 2003-01-09 16:29 UTC (permalink / raw)
Hi Managers
Thanks for all the replies and to HP services . When you
telnet to a host it reads the /etc/gettydefs file. I was on the right
track , i just commented the line for console in /etc/gettydefs , what
needs to be done is in /etc/gettydefs make a copy of the console entry
and comment that , in the first line change to default and remove the
whatever u dont want to see when u telnet to a host example n%v for
Tru64 version and (%h) for hostname.
default# B9600 HUPCL CS8 CLOCAL IXON OPOST ONLCR # B9600 SANE IXANY TAB3
CLOCAL #\r\n\r %t\r\n\r\n\rlogin: #console
#console# B9600 HUPCL CS8 CLOCAL IXON OPOST ONLCR # B9600 SANE IXANY
TAB3 CLOCAL #\r\n\r\n%v (%h) %t\r\n\r\n\rlogin: #console
Regards
^ permalink raw reply [flat|nested] 2+ messages in thread* SUMMARY: telnet message
@ 1996-06-06 20:24 rem
0 siblings, 0 replies; 2+ messages in thread
From: rem @ 1996-06-06 20:24 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-09 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-09 16:29 SUMMARY : Telnet Message Manish Vashi
-- strict thread matches above, loose matches on Subject: below --
1996-06-06 20:24 SUMMARY: telnet message rem
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox