[comp.sources.wanted] Accounting by groups. Was: Setting up groups

billb@amcad.UUCP (Bill Burton) (12/24/87)

In article <10863@brl-adm.ARPA> preece%fang@gswd-vms.Gould.COM (Scott E. Preece) writes:
>
>...  The accounting system still records a gid with each
>accounting record and that is the one from the passwd file entry (unless
>it has been changed).  So if you want to do accounting by groups,
>you still need something like newgrp to switch the user into the correct
>group when appropriate.
>

I want to do accounting by groups on a Sys V machine.  The standard system
accounting is set up and working but only keeps track by user.  

I'm primarily interested in connect time and disk utilization by group. 
Since the GID is not stored in /etc/wtmp, connect time by group may be
able to be calculated from the process accounting file.  CPU utilization
(hog factor) may eventually be helpful to know.

Can anyone offer any suggestions on how to implement this and if anyone
has written routines to do some or all of what I'm requesting, it would
help me greatly.

>scott preece
>gould/csd - urbana
>uucp: ihnp4!uiucdcs!ccvaxa!preece
>arpa: preece@Gould.com

Any help would be much appreciated.
-Bill

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Name:		William D. Burton
	US Mail:	American Academy of Arts and Sciences
			136 Irving St., Cambridge, MA 02138-1996
	UUCP:		...!husc6!amcad!billb
	ARPANET:	billb%amcad.uucp@husc6.harvard.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~