{"description": " To properly set the group owner of <code>/var/log</code>, run the command:\n<pre>$ sudo chgrp syslog /var/log</pre>\n", "rationale": "The <tt>/var/log</tt> directory contains files with logs of error\nmessages in the system and should only be accessed by authorized\npersonnel.", "severity": "medium", "references": {"srg": ["SRG-OS-000206-GPOS-00084", "SRG-APP-000118-CTR-000240"], "stigid": ["UBTU-22-232125"], "stigref": ["SV-260509r958566_rule"]}, "control_references": {"stigid": ["UBTU-22-232125"]}, "components": [], "identifiers": {}, "ocil_clause": "/var/log does not have a group owner of\nsyslog\n", "ocil": "To check the group ownership of <code>/var/log</code>,\nrun the command:\n<pre>$ ls -lL /var/log</pre>\nIf properly configured, the output should indicate the following group-owner:\n\n  <code>syslog</code>\n  ", "oval_external_content": null, "fixtext": "\nTo properly set the group owner of <code>/var/log</code>, run the command:\n\n  <pre>$ sudo chgrp syslog /var/log</pre>\n  ", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log directory must be group-owned by syslog.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /var/log directory 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\" directory is group-owned by root with the following command:\n\n$ stat -c \"%G %n\" /var/log\n\nroot /var/log\n\nIf \"/var/log\" does not have a group owner of \"root\", this is a finding.", "fixtext": "Configure the group owner of the directory \"/var/log\" to \"root\" by running the following command:\n\n$ sudo chgrp root /var/log"}}, "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 Directory", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_groupowner_var_log/rule.yml", "template": {"name": "file_groupowner", "vars": {"filepath": "/var/log/", "gid_or_name": "syslog"}, "backends": {}}}