For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/def-000-8wp.md. A documentation index is available at /llms.txt.

Install pam-runtime Package

Description

The libpam-runtime package can be installed with the following command:

$ apt-get install libpam-runtime

Rationale

libpam-runtime contains configuration that is needed by other rules when configuring PAM options.

Remediation

Shell script

The following script can be run on the host to remediate the issue.

#!/bin/bash

DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Lock::Timeout=60 install -y "libpam-runtime"

Ansible playbook

The following playbook can be run with Ansible to remediate the issue.

- name: Ensure libpam-runtime is installed
  ansible.builtin.package:
    name: libpam-runtime
    state: present
  tags:
  - enable_strategy
  - low_complexity
  - low_disruption
  - medium_severity
  - no_reboot_needed
  - package_pam_runtime_installed