{"description": "The owner of all log files written by\n<tt>rsyslog</tt> should be\n\n<tt>syslog</tt>.\n\nThese log files are determined by the second part of each Rule line in\n<tt>/etc/rsyslog.conf</tt> and typically all appear in <tt>/var/log</tt>.\nFor each log file <i>LOGFILE</i> referenced in <tt>/etc/rsyslog.conf</tt>,\nrun the following command to inspect the file's owner:\n<pre>$ ls -l <i>LOGFILE</i></pre>\nIf the owner is not\n\n<tt>syslog</tt>,\n\nrun the following command to\ncorrect this:\n\n<pre>$ sudo chown syslog <i>LOGFILE</i></pre>", "rationale": "The log files generated by rsyslog contain valuable information regarding system\nconfiguration, user authentication, and other such information. Log files should be\nprotected from unauthorized access.", "severity": "medium", "references": {"cis-csc": ["12", "13", "14", "15", "16", "18", "3", "5"], "cobit5": ["APO01.06", "DSS05.04", "DSS05.07", "DSS06.02"], "isa-62443-2009": ["4.3.3.7.3"], "isa-62443-2013": ["SR 2.1", "SR 5.2"], "iso27001-2013": ["A.10.1.1", "A.11.1.4", "A.11.1.5", "A.11.2.1", "A.13.1.1", "A.13.1.3", "A.13.2.1", "A.13.2.3", "A.13.2.4", "A.14.1.2", "A.14.1.3", "A.6.1.2", "A.7.1.1", "A.7.1.2", "A.7.3.1", "A.8.2.2", "A.8.2.3", "A.9.1.1", "A.9.1.2", "A.9.2.3", "A.9.4.1", "A.9.4.4", "A.9.4.5"], "nerc-cip": ["CIP-003-8 R5.1.1", "CIP-003-8 R5.3", "CIP-004-6 R2.3", "CIP-007-3 R2.1", "CIP-007-3 R2.2", "CIP-007-3 R2.3", "CIP-007-3 R5.1", "CIP-007-3 R5.1.1", "CIP-007-3 R5.1.2"], "nist": ["CM-6(a)", "AC-6(1)"], "nist-csf": ["PR.AC-4", "PR.DS-5"], "pcidss": ["Req-10.5.1", "Req-10.5.2"], "anssi": ["R71"], "ism": ["0988", "1405"], "pcidss4": ["10.3.2", "10.3"]}, "control_references": {"anssi": ["R71"], "ism": ["0988", "1405"], "pcidss4": ["10.3.2", "10.3"]}, "components": [], "identifiers": {}, "ocil_clause": "the owner is not correct", "ocil": "The owner of all log files written by <tt>rsyslog</tt> should be\n\n<tt>syslog</tt>.\n\nThese log files are determined by the second part of each Rule line in\n<tt>/etc/rsyslog.conf</tt> and typically all appear in <tt>/var/log</tt>.\nTo see the owner of a given log file, run the following command:\n<pre>$ ls -l <i>LOGFILE</i></pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel", "package[rsyslog]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel", "package_rsyslog"], "bash_conditional": null, "fixes": {}, "title": "Ensure Log Files Are Owned By Appropriate User", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/logging/ensure_rsyslog_log_file_configuration/rsyslog_files_ownership/rule.yml", "template": {"name": "rsyslog_logfiles_attributes_modify", "vars": {"attribute": "owner", "value": "syslog"}, "backends": {}}}