{"description": " To properly set the group owner of <code>/var/log/messages</code>, run the command:\n<pre>$ sudo chgrp 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 a group owner of\nroot\n", "ocil": "To check the group 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 group-owner:\n\n  <code>root</code>\n  ", "oval_external_content": null, "fixtext": "\nTo properly set the group owner of <code>/var/log/messages</code>, run the command:\n\n  <pre>$ sudo chgrp root /var/log/messages</pre>\n  ", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log/messages file must be group-owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /var/log/messages file must be group-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 group-owned by root with the following command:\n\n$ stat -c \"%G %n\" /var/log/messages\n\nroot /var/log\n\nIf \"/var/log/messages\" does not have a group owner of \"root\", this is a finding.", "fixtext": "Change the group owner of the \"/var/log/messages\" file to \"root\" by running the following command:\n\n$ sudo chgrp root /var/log/messages"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Group Who Owns /var/log/messages File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_groupowner_var_log_messages/rule.yml", "template": {"name": "file_groupowner", "vars": {"filepath": "/var/log/messages", "gid_or_name": "0"}, "backends": {}}}