From: Alan Davis <davis>
To: Michael.Bartz@udayton.edu
Subject: Re: login banner message - how to?
Date: 1995/11/21 [thread overview]
Message-ID: <48tnar$k5u@netnews.alf.dec.com> (raw)
In-Reply-To: 48galr$rgi@news.cps.udayton.edu
Michael.Bartz@udayton.edu (Michael O. Bartz) wrote:
>Hi there, I have a DEC Alpha 300-600 running OSF/1 v2.0. The current info you get
>when telnetting in is the following:
>
>OSF/1 (hostname.someplace.edu) (ttyp3)
>
>login:
>
>
>What I want is this:
>
>info
>info
>info
>
>OSF/1 (enterprise.udayton.edu) (ttyp3)
>
>login:
Mike,
If you haven't gotten an answer yet (my news feed is 5-10 days late)
you can create a "default" entry in the /etc/gettydefs file like so :
default# B9600 #9600 #\r\nThis is a test.\r\nWill this print on line \
two?\r\nThis is number 3\r\n#
The other method is to replace the login program with a c program that
will display a message file and then exec the real login :
#include <stdio.h>
main(int argc, char **argv) {
FILE *issue_f;
char c;
if((issue_f=fopen("/etc/issue","r"))!=NULL) {
while((c=getc(issue_f))!=EOF)
putchar(c);
fclose(issue_f);
}
execvp("/usr/lib/login.real",argv);
}
--
Alan Davis Digital Equipment Corp. | Employed by, but
System Support Specialist 5555 Windward Parkway | not speaking for,
davis@alf.dec.com Alpharetta, GA 30201 | Digital Equipment Corp
---------- Where am I going and what am I doing in this handbasket? ----------
prev parent reply other threads:[~1995-11-21 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-16 5:00 login banner message - how to? Michael O. Bartz
1995-11-21 5:00 ` Alan Davis
1995-11-21 5:00 ` Alan Davis [this message]
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