{"description": " To properly set the owner of <code>/etc/passwd-</code>, run the command:\n<pre>$ sudo chown root /etc/passwd- </pre>\n", "rationale": "The <tt>/etc/passwd-</tt> file is a backup file of <tt>/etc/passwd</tt>, and as such,\nit contains information about the users that are configured on the system.\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.2"], "pcidss4": ["2.2.6", "2.2"]}, "control_references": {"cis": ["7.1.2"], "pcidss4": ["2.2.6", "2.2"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/passwd- does not have an owner of root", "ocil": "To check the ownership of <code>/etc/passwd-</code>,\nrun the command:\n<pre>$ ls -lL /etc/passwd-</pre>\nIf properly configured, the output should indicate the following owner:\n<code>root</code>", "oval_external_content": null, "fixtext": " Change the group of the file /etc/passwd- to root by running the following command:\n$ sudo chgrp root /etc/passwd-", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/passwd- file must be group-owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 /etc/passwd- file must be owned by root.", "vuldiscussion": "The \"/etc/passwd-\" file is a backup file of \"/etc/passwd\", and as such, contains information about the users that are configured on the system. Protection of this file is critical for system security.", "checktext": "Verify the ownership of the \"/etc/passwd-\" file with the following command:\n\n$ sudo stat -c \"%U %n\" /etc/passwd-\n\nroot /etc/passwd-\n\nIf \"/etc/passwd-\" file does not have an owner of \"root\", this is a finding.", "fixtext": "Change the owner of the file /etc/passwd- to root by running the following command:\n\n$ sudo chown root /etc/passwd-"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify User Who Owns Backup passwd File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/files/permissions_important_account_files/file_owner_backup_etc_passwd/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": "/etc/passwd-", "uid_or_name": "0"}, "backends": {}}}