Process Accounting on FreeBSD 7

Prerequisites:

FreeBSD (Base + Autoconf, Automake, Bash and GCC)

Process Accounting on FreeBSD

# Process accounting is a security method in which an administrator may keep track of system resources used

# Create the accounting file and activate it
touch /var/account/acct
accton /var/account/acct

# Enable accounting startup at boot time by adding a line to the rc.conf
vi /etc/rc.conf

# Test out accounting and useful commands
sa
lastcomm
lastcomm ls

# Reference: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-accounting.html