Help with patching 'login'

Juergen Wagner gandalf at csli.STANFORD.EDU
Tue Nov 29 14:35:52 AEST 1988


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 at csli.stanford.edu
						 wagner at arisia.xerox.com



More information about the Comp.unix.questions mailing list