tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "William H. Magill" <magill () dccs ! upenn ! edu>
To: tru64-unix-managers
Subject: FAQ -  Changing the login prompt message
Date: Mon, 22 May 1995 13:34:32 +0000	[thread overview]
Message-ID: <96075319906647.tru64-unix-managers.marc@archive.invalid> (raw)

>   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.

Finally:

You will note that "B9600" or "B9600 SANE" can be used to set the login
characteritstics. However you CANNOT use "B9600 DEC" to "fix" the use of
DEL to delete characters instead of "backspace" at the "login:" and
"password" prompts. This has been reported to Software Engineering as a
"design deficiency" (Yes, it works as designed, "a feature, not a bug!")

T.T.F.N
William H. Magill                         Manager, PennNet Computing Services
Data Communications and Computing Services (DCCS)  University of Pennsylvania
Internet: magill@dccs.upenn.edu                    magill@acm.org
          magill@upenn.edu                         http://pobox.upenn.edu/~magill/
 

                 reply	other threads:[~1995-05-22 13:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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