{"description": "\nTo properly set the permissions of <code>/var/log</code>, run the command:\n<pre>$ sudo chmod 0755 /var/log</pre>", "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-232025"], "stigref": ["SV-260488r958566_rule"]}, "control_references": {"stigid": ["UBTU-22-232025"]}, "components": [], "identifiers": {}, "ocil_clause": "/var/log does not have unix mode drwxr-xr-x", "ocil": "To check the permissions of <code>/var/log</code>,\nrun the command:\n<pre>$ ls -l /var/log</pre>\nIf properly configured, the output should indicate the following permissions:\n<code>drwxr-xr-x</code>", "oval_external_content": null, "fixtext": "\nChange the permissions of the directory \"/var/log\" to \"0755\" by running the following command:\n\n$ sudo chmod 0755 /var/log", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log directory must have mode 0755 or less permissive.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /var/log directory must have mode 0755 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 that the \"/var/log\" directory has a mode of \"0755\" or less permissive with the following command:\n\n$ stat -c '%a %n' /var/log\n\n755 /var/log\n\nIf \"/var/log\" does not have a mode of \"0755\" or less permissive, this is a finding.", "fixtext": "Configure the \"/var/log\" directory to a mode of \"0755\" by running the following command:\n\n$ sudo chmod 0755 /var/log"}}, "platform": "service_disabled[rsyslog]", "platforms": ["service_disabled[rsyslog]"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["service_disabled_rsyslog"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Permissions on /var/log Directory", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_permissions_var_log/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": "/var/log/", "filemode": "0755"}, "backends": {}}}