From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076333621233.tru64-unix-managers.marc@archive.invalid> From: rem () MATH ! AMS ! ORG Date: Thu, 06 Jun 1996 20:24:52 +0000 To: tru64-unix-managers Subject: SUMMARY: telnet message X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076333621233 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 Hellebo Knut Miguel Mena Phil Rand Huw Davies Gordon Smith Edward Murphy Anil Khullar Graham Orndorff Paden 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 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 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. ----------------------------------------- # 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 ----------------------------------------- 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