The OL 8 lastlog command must have a mode of "0750" or less permissive.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-283459SRG-OS-000080-GPOS-00048OL08-00-020262SV-283459r1188521_rule2026-02-132

Description

Unauthorized disclosure of the contents of the /var/log/lastlog file can reveal system data to attackers, thus compromising its confidentiality.

ℹ️ Check

Verify the "lastlog" command has a mode of "0750" or less permissive with the following command: $ sudo stat -c "%a %n" /usr/bin/lastlog 750 /usr/bin/lastlog If the "lastlog" command has a mode more permissive than "0750", this is a finding.

✔️ Fix

Configure the mode of the "lastlog" command for OL 8 to "0750" with the following command: $ sudo chmod 0750 /usr/bin/lastlog