Skip to content

SLEM 5 must use the default pam_tally2 tally directory.

An XCCDF Rule

Description

This rule configures the system to use default pam_tally2 tally directory

Rationale

By limiting the number of failed logon attempts, the risk of unauthorized system access via user password guessing, otherwise known as brute-force attacks, is reduced. Limits are imposed by locking the account.

ID
xccdf_org.ssgproject.content_rule_accounts_passwords_pam_tally2_file
Severity
Medium
References
Updated



Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-94089-0
  - DISA-STIG-SLEM-05-412030

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q pam; then

declare -a VALUES=()
declare -a VALUE_NAMES=()
declare -a ARGS=()