{"description": "\nTo properly set the permissions of <code>/etc/shadow-</code>, run the command:\n<pre>$ sudo chmod 0640 /etc/shadow-</pre>", "rationale": "The <tt>/etc/shadow-</tt> file is a backup file of <tt>/etc/shadow</tt>, and as such,\nit contains the list of local system accounts and password hashes.\nProtection of this file is critical for system security.", "severity": "medium", "references": {"nist": ["AC-6 (1)"], "pcidss": ["Req-8.7.c"], "srg": ["SRG-OS-000480-GPOS-00227"], "cis": ["7.1.6"], "pcidss4": ["2.2.6", "2.2"]}, "control_references": {"cis": ["7.1.6"], "pcidss4": ["2.2.6", "2.2"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/shadow- does not have unix mode -rw-r-----", "ocil": "To check the permissions of <code>/etc/shadow-</code>,\nrun the command:\n<pre>$ ls -l /etc/shadow-</pre>\nIf properly configured, the output should indicate the following permissions:\n<code>-rw-r-----</code>", "oval_external_content": null, "fixtext": " Configure the \"/etc/shadow-\" file to \"0640\" by running the following command:\n$ sudo chmod 0640 /etc/shadow-", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/shadow- file must have mode 0640 or less permissive to prevent unauthorized access.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /etc/shadow- file must have mode 0000 or less permissive to prevent unauthorized access.", "vuldiscussion": "The \"/etc/shadow-\" file is a backup file of \"/etc/shadow\", and as such, contains the list of local system accounts and password hashes. Protection of this file is critical for system security.", "checktext": "Verify that the \"/etc/shadow-\" file has mode \"0000\" with the following command:\n\n$ sudo stat -c \"%a %n\" /etc/shadow-\n\n0 /etc/shadow-\n\nIf a value of \"0\" is not returned, this is a finding.", "fixtext": "Change the mode of the file \"/etc/shadow-\" to \"0000\" by running the following command:\n\n$ sudo chmod 0000 /etc/shadow-"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Permissions on Backup shadow File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_important_account_files/file_permissions_backup_etc_shadow/rule.yml", "template": {"name": "file_permissions", "vars": {"filepath": "/etc/shadow-", "filemode": "0640"}, "backends": {}}}