UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The /etc/shadow (or equivalent) file must have mode 0400.


Overview

Finding ID Version Rule ID IA Controls Severity
V-800 GEN001420 SV-38470r2_rule ECLP-1 Medium
Description
The /etc/shadow file contains the list of local system accounts. It is vital to system security and must be protected from unauthorized modification. The file also contains password hashes which must not be accessible to users other than root. The Trusted Mode /tcb tree requires modes more permissive than the shadow file.
STIG Date
HP-UX SMSE Security Technical Implementation Guide 2014-02-28

Details

Check Text ( C-36332r2_chk )
For Trusted Mode:
Check the TCB auth files and directories.
# ls -lLd /tcb /tcb/files /tcp/files/auth
# ls -lL /tcb/files/auth/[a-z,A-Z]/*

If the mode of /tcb directory is more permissive than 0555, this is a finding.
If the mode of /tcb/files or /tcb/files/auth directories is more permissive than 0771, this is a finding.
If the mode of any of the /tcb/files/auth/[a-z]/* is more permissive than 0664, this is a finding.

For SMSE:
Check the /etc/shadow file.
# ls -lL /etc/shadow

If the /etc/shadow file has a mode more permissive than 0400, this is a finding. NOTE: The /etc/shadow file will not exist if the system is in Trusted Mode.
Fix Text (F-31587r2_fix)
For Trusted Mode:
# chmod 0555 /tcb
# chmod 0771 /tcb/files /tcb/files/auth
# chmod 0664 /tcb/files/auth/[a-z]/*

For SMSE:
# chmod 00400 /etc/shadow