Skip to content

Install the psacct package

An XCCDF Rule

Description

The process accounting service, psacct, works with programs including acct and ac to allow system administrators to view user activity, such as commands issued by users of the system. The psacct package can be installed with the following command:

$ sudo yum install psacct

Rationale

The psacct service can provide administrators a convenient view into some user activities. However, it should be noted that the auditing system and its audit records provide more authoritative and comprehensive records.

ID
xccdf_org.ssgproject.content_rule_package_psacct_installed
Severity
Low
References
Updated



Remediation - Puppet

include install_psacct

class install_psacct {
  package { 'psacct':
    ensure => 'installed',
  }

Remediation - Ansible

- name: Ensure psacct is installed
  package:
    name: psacct
    state: present
  tags:
  - CCE-82404-5

Remediation - script:kickstart


package install psacct

Remediation - OS Build Blueprint


[[packages]]
name = "psacct"
version = "*"

Remediation - script:bootc


dnf install psacct

Remediation - Anaconda Pre-Install Instructions


package --add=psacct

Remediation - Shell Script


if ! rpm -q --quiet "psacct" ; then
    yum install -y "psacct"
fi