Rule ID
SV-45156r1_rule
Version
V1R12
CCIs
Local initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon logon.
Check user home directories for local initialization files with extended ACLs.
# for HOMEDIR in $(cut -d: -f6 /etc/passwd); do find ${HOMEDIR} -type f -name '\.*' | xargs ls -ld | grep '\+'; done
If the permissions include a '+', the file has an extended ACL. If the file has an extended ACL and it has not been documented with the IAO, this is a finding.Remove the extended ACL from the file. # setfacl --remove-all <local initialization file with extended ACL>