7.2 Enabling Process Accounting

You can enhance security event reporting in Sentinel by enabling process accounting. However, enabling process accounting substantially increases the activity on the monitored computer and also changes the base computer configuration, which may not be acceptable for your environment. Enabling process accounting are optional tasks. Do not enable these modules if syslog reports the events you want to monitor.

7.2.1 Enabling Process Accounting on AIX Computers

To enable process accounting on AIX computers, enter the following command at the prompt:

/usr/sbin/acct/accton /var/adm/pact

You can also enter the following line in an rc script to automatically restart process accounting:

/usr/bin/su – adm –c /usr/sbin/acct/startup

7.2.2 Enabling Process Accounting on HP-UX Computers

To enable process accounting, enter the following command at the prompt:

/usr/sbin/acct/startup

You can also enter the following line in the /etc/rc.config.d/acct script to automatically restart process accounting:

START_ACCT=1

7.2.3 Enabling Process Accounting on Red Hat Linux

To configure process accounting on Red Hat Linux computers:

  1. Install the psacct package located in the Linux installation kit. This package is not installed by default unless you installed all available packages. For more information about installing the psacct package, see the Red Hat Linux documentation.

  2. Modify your system init script to automatically start process accounting by adding the following lines:

    # Turn process accounting on. 
    if [ -x /sbin/accton ]
    then 
         /sbin/accton /var/log/pacct 
         echo "Process accounting turned on."
    fi
    
  3. Create an accounting record file named pacct by entering the following command:

    touch /var/log/pacct
    

    By default, the process accounting software prints out all commands executed to the file /var/log/pacct.

  4. Modify the permissions to the pacct file by entering the following commands:

    chown root /var/log/pacct
    chmod 644 /var/log/pacct
    

7.2.4 Enabling Process Accounting on Solaris Computers

To start process accounting, enter the following command at the prompt:

/usr/lib/acct/accton /var/adm/pacct

You can also enter the following commands to automatically restart process accounting:

ln /etc/init.d/acct /etc/rc2.d/S22acct
ln /etc/init.d/acct /etc/rc0.d/K22acct