The OL 8 lastlog command must be owned by root.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-248706OL08-00-020263SV-248706r958566_ruleCCI-001314medium
Description
Unauthorized disclosure of the contents of the /var/log/lastlog file can reveal system data to attackers, thus compromising its confidentiality.
STIGDate
Oracle Linux 8 Security Technical Implementation Guide2025-05-13

Related Frameworks

2 paths across 2 frameworks
NIST 800-531 mapping
SI-11
1.00
  • DISA · 2 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
CCI1 mapping
CCI-001314
1.00
  • DISA · 2 · disa_xccdf · related

Details

Check Text (C-248706r958566_chk)

Verify the "lastlog" command is 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 owned by root, this is a finding.

Fix Text (F-52094r779683_fix)

Configure the "lastlog" command for OL 8 to be owned by root with the following command: $ sudo chown root /usr/bin/lastlog