From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f33115afb0c84d90 X-Google-Attributes: gidfee84,public From: Alan Davis Subject: Re: login banner message - how to? Date: 1995/11/21 Message-ID: <48tnar$k5u@netnews.alf.dec.com>#1/1 X-Deja-AN: 119942003 references: <48galr$rgi@news.cps.udayton.edu> to: Michael.Bartz@udayton.edu content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation, Alpharetta, GA, USA x-url: news:48galr$rgi@news.cps.udayton.edu mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.0 alpha) 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 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? ----------