{"description": " To properly set the owner of <code>/var/log/messages</code>, run the command:\n<pre>$ sudo chown root /var/log/messages </pre>\n", "rationale": "The <tt>/var/log/messages</tt> file contains logs of error messages in\nthe system and should only be accessed by authorized personnel.", "severity": "medium", "references": {"srg": ["SRG-OS-000206-GPOS-00084"], "cis": ["6.2.2.1"]}, "control_references": {"cis": ["6.2.2.1"]}, "components": [], "identifiers": {}, "ocil_clause": "/var/log/messages does not have an owner of root", "ocil": "To check the ownership of <code>/var/log/messages</code>,\nrun the command:\n<pre>$ ls -lL /var/log/messages</pre>\nIf properly configured, the output should indicate the following owner:\n<code>root</code>", "oval_external_content": null, "fixtext": "\nTo properly set the owner of <code>/var/log/messages</code>, run the command:\n\n  <pre>$ sudo chown root /var/log/messages </pre>\n  ", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log/messages file must be owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /var/log/messages file must be owned by root.", "vuldiscussion": "Only authorized personnel should be aware of errors and the details of the errors. Error messages are an indicator of an organization's operational state or can identify the Ubuntu 22.04 system or platform. Additionally, personally identifiable information (PII) and operational information must not be revealed through error messages to unauthorized personnel or their designated representatives.\n\nThe structure and content of error messages must be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements.", "checktext": "Verify the \"/var/log/messages\" file is owned by root with the following command:\n\n$ stat -c \"%U %n\" /var/log/messages\n\nroot /var/log\n\nIf \"/var/log/messages\" does not have an owner of \"root\", this is a finding.", "fixtext": "Change the owner of the \"/var/log/messages\" file to \"root\" by running the following command:\n\n$ sudo chown root /var/log/messages"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify User Who Owns /var/log/messages File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_owner_var_log_messages/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": "/var/log/messages", "uid_or_name": "0", "no_remediation": "true"}, "backends": {}}}