UCF STIG Viewer Logo

The SMTP service log file must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-837 GEN004480 SV-35053r1_rule ECLP-1 Medium
Description
If the SMTP service log file is not owned by root, then unauthorized personnel may modify or delete the file to hide a system compromise.
STIG Date
HP-UX 11.23 Security Technical Implementation Guide 2015-12-02

Details

Check Text ( C-36566r1_chk )
Locate any Sendmail log files by checking the syslog configuration file.
# cat /etc/syslog.conf | tr '\011' ' ' | tr -s ' ' | sed -e 's/^[ \t]*//' | grep -v "^#" | \
egrep -i "mail.info|mail.debug|mail.\*|\*.info|\*.debug|\*.\*" | cut -f 2,2 -d " " | uniq | xargs -n1 ls -lL

Identify any log files configured for the "mail" service at any severity
level, or those configured for all services. Check the ownership of these
log files.

If any mail log file is not owned by root, this is a finding.
Fix Text (F-31934r1_fix)
Change the ownership of the sendmail log file.
# chown root