{"description": "\nTo properly set the permissions of <code>/var/log/messages</code>, run the command:\n<pre>$ sudo chmod 0600 /var/log/messages</pre>", "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 unix mode -rw-------", "ocil": "To check the permissions of <code>/var/log/messages</code>,\nrun the command:\n<pre>$ ls -l /var/log/messages</pre>\nIf properly configured, the output should indicate the following permissions:\n<code>-rw-------</code>", "oval_external_content": null, "fixtext": "\nConfigure the \"/var/log/messages\" file to \"0600\" by running the following command:\n\n$ sudo chmod 0600 /var/log/messages", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log/messages file must have mode 0600 or less permissive to prevent unauthorized access.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /var/log/messages file must have mode 0640 or less permissive.", "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 has a mode of \"0640\" or less permissive with the following command:\n\n$ stat -c '%a %n' /var/log/messages\n\n600 /var/log/messages\n\nIf \"/var/log/messages\" does not have a mode of \"0640\" or less permissive, this is a finding.", "fixtext": "Configure the \"/var/log/messages\" file to have a mode of \"0640\" by running the following command:\n\n$ sudo chmod 0640 /var/log/messages"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Permissions on /var/log/messages File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_permissions_var_log_messages/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": "/var/log/messages", "filemode": "0600"}, "backends": {}}}