{"description": " To properly set the group owner of <code>/var/log/(b|w)tmp(.*|-*)</code>, run the command:\n<pre>$ sudo chgrp utmp /var/log/(b|w)tmp(.*|-*)</pre> or\n<pre>$ sudo chgrp 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 a group owner of\nutmp or\nroot\n", "ocil": "To check the group 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 group-owner:\n\n  <code>utmp</code>\n   or \n\n  <code>root</code>\n  ", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "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 Group 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_groupowner_var_log_wbtmp/rule.yml", "template": {"name": "file_groupowner", "vars": {"filepath": "/var/log/", "file_regex": ".*(b|w)tmp((\\.|-)[^\\/]+)?", "gid_or_name": "utmp|root"}, "backends": {}}}