STIGUI
V-248707CAT II — Medium severitySV-248707r958566_rule

The OL 8 lastlog command must be group-owned by root.

Rule version OL08-00-020264 · 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 is group-owned by root with the following command:

$ sudo ls -l /usr/bin/lastlog

-rwxr-x---. 1 root root 21200 Nov 4 22:51 /usr/bin/lastlog

If the "lastlog" command is not group-owned by root, this is a finding.

Fix

Configure the "lastlog" command for OL 8 to be group-owned by root with the following command:

$ sudo chgrp root /usr/bin/lastlog

Identifiers

Group ID
V-248707
Group title
SRG-OS-000206-GPOS-00084
Rule ID
SV-248707r958566_rule
Check ID
C-52141r779685_chk
Fix ID
F-52095r779686_fix