* login banner message - how to?
@ 1995-11-16 5:00 Michael O. Bartz
1995-11-21 5:00 ` Alan Davis
1995-11-21 5:00 ` Alan Davis
0 siblings, 2 replies; 3+ messages in thread
From: Michael O. Bartz @ 1995-11-16 5:00 UTC (permalink / raw)
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:
What file do I need to create, or what do I need to hack to make this happen?
Thanks in advance,
Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: login banner message - how to?
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
1 sibling, 0 replies; 3+ messages in thread
From: Alan Davis @ 1995-11-21 5:00 UTC (permalink / raw)
To: Michael.Bartz
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? ----------
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: login banner message - how to?
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
1 sibling, 0 replies; 3+ messages in thread
From: Alan Davis @ 1995-11-21 5:00 UTC (permalink / raw)
To: Michael.Bartz
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? ----------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-11-21 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox