AcctKit 0.2.1 This kit of pieces adds process accounting to the standard Linux kernel. It contains a diff file relative to the 0.99.10 + Linus Patch1, a new include file and ports of the BSD NET2 accton and lastcomm commands. ***Important: The lastcomm and accton programs from this kit are part of the BSD NET2 release. See lastcomm.c and accton.c for the UCB licensing conditions To install: Unpack the source with gzip -d acctkit-0.99.10.tar.z | tar -tzvvf - Note that the linux source is assumed to lie in /usr/src/linux subdir tree. Patching also adds a new header file called acct.h to your /usr/src/linux/include/linux directory. If it doesn't, copy the file there yourself. cd /usr/src patch < acctkit-0.99.10/diffs-0.99.10 cp acctkit-0.99.10/acct.h /usr/include/linux/acct.h cd acctkit-0.99.10 mv accton /etc/accton mv lastcomm /usr/bin/lastcomm cp lastcomm.1 /usr/man/man1/lastcomm.1 touch /usr/adm/acct Build a new kernel. With this new kernel you can enable accounting with 'accton /usr/adm/acct' disable it with 'accton', and look at command histories with lastcomm {user}. Limitations ----------- I don't implement memory, pagefault or disk usage logging, just commands and whether it ran as root. Its enough for my purposes with our computer society system. LICENSE -------- All original code in this kit is placed under the GNU public license. All other material carries its own copyright messages which you should check to ensure they are suitable. THANKS and miscellaneus notes ------------------------------ I found this package as acctkit-0.99.8.tar.Z from sunsite.unc.edu. Somebody has done most of the work this far; Thanks a lot to him/her. I just cleaned up the code a little, set up a makefile and made new diffs against linux-0.99.10 kernel release. Juha Virtanen, email