---
title: Install pam Package
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog Security > OOTB Rules > Install pam Package
---

# Install pam Package
 
## Description{% #description %}

The `pam` package can be installed with the following command:

```
$ sudo yum install pam
```

## Rationale{% #rationale %}

The `pam` package provides Pluggable Authentication Modules (PAM) which is a system for authenticating users. PAM provides a flexible and centralized way to manage authentication methods for applications and services. Ensuring the latest version of pam is installed helps maintain system security by providing the latest security fixes and features.

## Remediation{% #remediation %}

### Shell script{% #shell-script %}

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

```bash
#!/bin/bash

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

### Ansible playbook{% #ansible-playbook %}

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

```
- name: Ensure pam is installed
  ansible.builtin.package:
    name: pam
    state: present
  tags:
  - CCE-89184-6
  - enable_strategy
  - low_complexity
  - low_disruption
  - medium_severity
  - no_reboot_needed
  - package_pam_installed
```
