From: dsb@osf.org (David Boyce)
Subject: Re: Pre-login banner
Date: 11 May 1994 17:33:55 GMT [thread overview]
Message-ID: <DSB.94May11133333@ets7.osf.org> (raw)
In-Reply-To: vulture@imperial.ac.uk's message of Wed, 11 May 94 13:54:00 BST
>> we nned to display a banner before people log in, be that via telnet, ftp,
>> rlogin, or over serial lines. Under Ultrix we did this by putting the
>> (multi-line) message into the symbol "default" in /etc/gettytab, on IRIX
>> and there is a file called /etc/issue, which is display before the "login:"
>> prompt is printed.
>> Is there such a facility on osf1 ?
>> We could only find the message field in /etc/gettydefs, but there are no
>> symbols, and putting about a kilobyte into the messagefield 35 times
>> (for each entry) makes the file a pain to edit.
>> Any help will be gratly appreciated. Thomas
Not that I've tried it, but since OSF/1 is fully messagized you should
be able to replace the "login:" prompt in the message catalog for the
login program with whatever text you want. Running the following
command on DEC OSF/1 1.3:
dsb@presto> dspcat /usr/lib/nls/msg/en_US.88591/login.cat | grep login:
1 : 2 login: -h for super-user only.
1 : 3 login: -f for super-user only.
1 : 21 login: no shell: %s.
1 : 22 login:
1 : 25 Last login: %.*s
shows that the "login:" message is number 22 in set 1 (see dspcat(1)
for details). Knowing that, you should be able to use the gencat(1)
utility to replace the message in that slot with random text.
Then you may need to make sure the LANG or LC_MESSAGES environment
variables are set to the english locale when login is run. No guarantees
because I didn't try it.
--
David Boyce dsb@osf.org 617-621-8963
next prev parent reply other threads:[~1994-05-11 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-11 12:54 Pre-login banner Thomas Sippel - Dau
1994-05-11 17:33 ` David Boyce [this message]
1994-05-16 8:50 ` Is there a NNTP server for the OSF/1 Steven Wong
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