From: cchd@lucifer.latrobe.edu.au (Huw Davies)
Subject: Re: Where is /etc/issue in DUnix ??
Date: 1995/11/09 [thread overview]
Message-ID: <47rtma$do9@lugb.latrobe.edu.au> (raw)
In-Reply-To: 47juvr$o4j@spectator.cris.com
: 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 <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);
}
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"
prev parent reply other threads:[~1995-11-09 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <472sh1$ne4@rs3.rz.uni-hohenheim.de>
1995-11-06 5:00 ` Where is /etc/issue in DUnix ?? Henry Priebe Jr
1995-11-09 5:00 ` Huw Davies [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