{"description": " To properly set the group owner of <code>/etc/gshadow-</code>, run the command:\n<pre>$ sudo chgrp shadow /etc/gshadow-</pre>\n", "rationale": "The <tt>/etc/gshadow-</tt> file is a backup of <tt>/etc/gshadow</tt>, and as such,\nit contains group password hashes. Protection of this file is critical for system security.", "severity": "medium", "references": {"nist": ["AC-6 (1)"], "pcidss": ["Req-8.7"], "srg": ["SRG-OS-000480-GPOS-00227"], "cis": ["7.1.8"]}, "control_references": {"cis": ["7.1.8"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/gshadow- does not have a group owner of\nshadow\n", "ocil": "To check the group ownership of <code>/etc/gshadow-</code>,\nrun the command:\n<pre>$ ls -lL /etc/gshadow-</pre>\nIf properly configured, the output should indicate the following group-owner:\n\n  <code>shadow</code>\n  ", "oval_external_content": null, "fixtext": " Change the group of the file /etc/gshadow- to shadow by running the following command:\n$ sudo chgrp shadow /etc/gshadow-", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/gshadow- file must be group-owned by shadow.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /etc/gshadow- file must be group-owned by root.", "vuldiscussion": "The \"/etc/gshadow-\" file is a backup of \"/etc/gshadow\", and as such, contains group password hashes. Protection of this file is critical for system security.", "checktext": "Verify the group ownership of the \"/etc/gshadow-\" file with the following command:\n\n$ sudo stat -c \"%G %n\" /etc/gshadow-\n\nroot /etc/gshadow-\n\nIf \"/etc/gshadow-\" file does not have a group owner of \"root\", this is a finding.", "fixtext": "Change the group of the file /etc/gshadow- to root by running the following command:\n\n$ sudo chgrp root /etc/gshadow-"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Group Who Owns Backup gshadow File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_important_account_files/file_groupowner_backup_etc_gshadow/rule.yml", "template": {"name": "file_groupowner", "vars": {"filepath": "/etc/gshadow-", "gid_or_name": "42"}, "backends": {}}}