UCF STIG Viewer Logo

The /etc/shadow file must be owned by root.


Finding ID Version Rule ID IA Controls Severity
V-217871 RHEL-06-000033 SV-217871r505923_rule Medium
The "/etc/shadow" file contains the list of local system accounts and stores password hashes. Protection of this file is critical for system security. Failure to give ownership of this file to root provides the designated owner with access to sensitive information which could weaken the system security posture.
Red Hat Enterprise Linux 6 Security Technical Implementation Guide 2020-09-03


Check Text ( C-19352r376628_chk )
To check the ownership of "/etc/shadow", run the command:

$ ls -l /etc/shadow

If properly configured, the output should indicate the following owner: "root"
If it does not, this is a finding.
Fix Text (F-19350r376629_fix)
To properly set the owner of "/etc/shadow", run the command:

# chown root /etc/shadow