Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: Where is /etc/issue in DUnix ??
       [not found] <472sh1$ne4@rs3.rz.uni-hohenheim.de>
@ 1995-11-06  5:00 ` Henry Priebe Jr
  1995-11-09  5:00   ` Huw Davies
  0 siblings, 1 reply; 2+ messages in thread
From: Henry Priebe Jr @ 1995-11-06  5:00 UTC (permalink / raw)


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 ???

: Thanks in advance

: Juergen


: BTW: Please mail me a copy of your answers.
 
I also would like to know of an easy way to do this. We have a new user 
login account that runs a program to query the user for their info to be 
validated for internet access, but there's no way to tell them:
 
Unregisterred users should should log in as 'new'.
Login:

I know there has to be a simple way to do this without battling to wedge 
the system in some semi-orthodox fashion....
 
Henry Priebe,
root@net.bluemoon.net
Buffalo, NY, USA




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Where is /etc/issue in DUnix ??
  1995-11-06  5:00 ` Where is /etc/issue in DUnix ?? Henry Priebe Jr
@ 1995-11-09  5:00   ` Huw Davies
  0 siblings, 0 replies; 2+ messages in thread
From: Huw Davies @ 1995-11-09  5:00 UTC (permalink / raw)


: 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"



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-11-09  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox