Stopping and Disabling System Accounting
You can temporarily stop system accounting or permanently disable it.
How to Temporarily Stop System Accounting
- Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
- Edit the adm crontab file to stop the ckpacct, runacct, and monacct
programs from running by commenting out the appropriate lines.
# EDITOR=vi; export EDITOR
# crontab -e adm
#0 * * * * /usr/lib/acct/ckpacct
#30 2 * * * /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log
#30 7 1 * * /usr/lib/acct/monacct
- Edit the root crontab file to stop the dodisk program from running by commenting out
the appropriate line.
# crontab -e
#30 22 * * 4 /usr/lib/acct/dodisk
- Stop the system accounting program.
# /etc/init.d/acct stop
- (Optional) Remove the newly added comment symbols from the crontab files.
- Restart the system accounting program to re-enable system accounting.
# /etc/init.d/acct start
How to Permanently Disable System Accounting
- Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
- Edit the adm crontab file and delete the entries for the ckpacct,
runacct, and monacct programs.
# EDITOR=vi; export EDITOR
# crontab -e adm
- Edit the root crontab file and delete the entries for the dodisk
program.
# crontab -e
- Remove the startup script for Run Level 2.
# unlink /etc/rc2.d/S22acct
- Remove the stop script for Run Level 0.
# unlink /etc/rc0.d/K22acct
- Stop the system accounting program.
# /etc/init.d/acct stop