From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bd92b572bd2dccc3 X-Google-Attributes: gidfee84,public From: cchd@lucifer.latrobe.edu.au (Huw Davies) Subject: Re: Where is /etc/issue in DUnix ?? Date: 1995/11/09 Message-ID: <47rtma$do9@lugb.latrobe.edu.au>#1/1 X-Deja-AN: 118934323 references: <472sh1$ne4@rs3.rz.uni-hohenheim.de> <47juvr$o4j@spectator.cris.com> organization: La Trobe University newsgroups: comp.unix.osf.osf1 : system PRIVILEGED account (root@decosf1.dbf.ddb.de) wrote: : : Hi there, : : is there a way to display some information BEFORE the user logs in? : : In Linux it is /etc/issue which I can use to display some info. Is : : there something like that in DUNIX 3.2c ??? What we have done in the past is to replace the login program with: #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); } Note, you should copy the Digital supplied login to /usr/lib/login.real and you might need to redo the changes after an operating system update. -- Huw Davies | e-mail: Huw.Davies@latrobe.edu.au Information Technology Services | Phone: +61 3 9479 1550 Fax: +61 3 9479 1999 La Trobe University | "My Alfas keep me poor in a monetary Melbourne Australia 3083 | sense, but rich in so many other ways"