UCF STIG Viewer Logo

The /etc/passwd file must not contain password hashes.


Overview

Finding ID Version Rule ID IA Controls Severity
V-22347 GEN001470 SV-64581r1_rule Medium
Description
If password hashes are readable by non-administrators, the passwords are subject to attack through lookup tables or cryptographic weaknesses in the hashes.
STIG Date
Oracle Linux 5 Security Technical Implementation Guide 2020-02-25

Details

Check Text ( C-52997r1_chk )
Verify no password hashes are present in /etc/passwd.

# cut -d : -f 2 /etc/passwd | egrep -v '^(x|\*)$'

If any password hashes are returned, this is a finding.
Fix Text (F-55177r1_fix)
Migrate /etc/passwd password hashes to /etc/shadow.

# pwconv