Check: RHEL-06-000031
Red Hat Enterprise Linux 6 STIG:
RHEL-06-000031
(in versions v2 r2 through v1 r14)
Title
The /etc/passwd file must not contain password hashes. (Cat II impact)
Discussion
The hashes for all user account passwords should be stored in the file "/etc/shadow" and never in "/etc/passwd", which is readable by all users.
Check Content
To check that no password hashes are stored in "/etc/passwd", run the following command: # awk -F: '($2 != "x") {print}' /etc/passwd If it produces any output, then a password hash is stored in "/etc/passwd". If any stored hashes are found in /etc/passwd, this is a finding.
Fix Text
If any password hashes are stored in "/etc/passwd" (in the second field, instead of an "x"), the cause of this misconfiguration should be investigated. The account should have its password reset and the hash should be properly stored, or the account should be deleted entirely.
Additional Identifiers
Rule ID: SV-217869r603264_rule
Vulnerability ID: V-217869
Group Title: SRG-OS-000073
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000196 |
The information system, for password-based authentication, stores only cryptographically-protected passwords. |
CCI-000366 |
The organization implements the security configuration settings. |