Path: utzoo!utgpu!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!mailrus!purdue!decwrl!labrea!csli!gandalf
From: gandalf@csli.STANFORD.EDU (Juergen Wagner)
Newsgroups: comp.unix.questions
Subject: Re: Help with patching 'login'
Keywords: login, patch, accounting
Message-ID: <6581@csli.STANFORD.EDU>
Date: 29 Nov 88 04:35:52 GMT
References: <17508@agate.BERKELEY.EDU>
Reply-To: wagner@arisia.xerox.com (Juergen Wagner)
Organization: Center for the Study of Language and Information, Stanford U.
Lines: 19

In general, what keeps the user from supplying a job number indicating he/she
is going to work on project XYZ but then playing rogue? In particular, what do
you want to use the accounting for? If it is just a hint on user account usage,
I suggest to setup a daemon which listens on a AF_UNIX socket, and every user
should have something like
	echo -n "Gimme your job number?
	joblogger $<
and the program 'joblogger' will then record whatever info you need, this may
be used to change the job number in the middle of a login session (no problem
because the joblogger process may fetch the usage statistics of its parent).

If that's not what you need, short of patching login, how about a job number
suffix to user names. You may even have different passwords then. It will be
a different problem to ensure that the job numbers provided by users are 
accurate.

-- 
Juergen Wagner		   			gandalf@csli.stanford.edu
						 wagner@arisia.xerox.com