turnacct Command

Purpose

Provides an interface to the accton command to turn process accounting on or off.

Syntax

/usr/sbin/acct/turnacct on off switch

Description

The turnacct command provides an interface to the accton command to turn process accounting on or off. You must specify whether you want process accounting on or off, because there is no default.

The switch flag turns off accounting and moves the current active data file (/var/adm/pacct) to the next free name in the /var/adm/pacctincr file, where incr is a number starting at 1 and increased by one for each additional pacct file. After moving the pacct file, the turnacct command again turns on accounting.

The turnacct switch command is usually called by the ckpacct command, running under the cron daemon, to keep the active pacct data file a manageable size.

Security

Access Control: This command should grant execute (x) access only to members of the adm group.

Files

Item Description
/usr/sbin/acct Contains the path to the accounting commands.
/var/adm/pacct Contains the current file for process accounting.
/var/adm/pacct* Used if the pacct file gets too large.