1.190 OL08-00-020264

Information

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

GROUP ID: V-248707
RULE ID: SV-248707r958566

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

Solution

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

$ sudo chgrp root /usr/bin/lastlog

See Also

https://workbench.cisecurity.org/benchmarks/23791