{"description": " To properly set the owner of <code>/var/log/(b|w)tmp(.*|-*)</code>, run the command:\n<pre>$ sudo chown root /var/log/(b|w)tmp(.*|-*) </pre>\n", "rationale": "The <tt>/var/log/(b|w)tmp(.*|-*)</tt> file contains logs of reports the most recent login of all users\nand should only be accessed by authorized personnel.", "severity": "medium", "references": {"cis": ["6.2.2.1"]}, "control_references": {"cis": ["6.2.2.1"]}, "components": [], "identifiers": {}, "ocil_clause": "/var/log/(b|w)tmp(.*|-*) does not have an owner of root", "ocil": "To check the ownership of <code>/var/log/(b|w)tmp(.*|-*)</code>,\nrun the command:\n<pre>$ ls -lL /var/log/(b|w)tmp(.*|-*)</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/(b|w)tmp(.*|-*)</code>, run the command:\n\n  <pre>$ sudo chown root /var/log/(b|w)tmp(.*|-*) </pre>\n  ", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /var/log/(b|w)tmp(.*|-*) file must be owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "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/(b|w)tmp(.*|-*) File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_var_log_dir/file_owner_var_log_wbtmp/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": "/var/log/", "file_regex": ".*(b|w)tmp((\\.|-)[^\\/]+)?$", "uid_or_name": "0"}, "backends": {}}}