STIGUI
V-283459CAT II — Medium severitySV-283459r1188521_rule

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

Rule version OL08-00-020262 · STIG v2 · 2026-08-24

Discussion

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

Identifiers

Group ID
V-283459
Group title
SRG-OS-000080-GPOS-00048
Rule ID
SV-283459r1188521_rule
Check ID
C-88024r1188519_chk
Fix ID
F-87929r1188520_fix