SV-239116r675156_rule
V-239116
SRG-OS-000239-GPOS-00089
PHTN-67-000045
CAT II
10
At the command line, execute the following commands:
# echo '-w /etc/passwd -p w -k passwd' >> /etc/audit/rules.d/audit.STIG.rules
# echo '-w /etc/shadow -p w -k shadow' >> /etc/audit/rules.d/audit.STIG.rules
# echo '-w /etc/group -p w -k group' >> /etc/audit/rules.d/audit.STIG.rules
# echo '-w /etc/gshadow -p w -k gshadow' >> /etc/audit/rules.d/audit.STIG.rules
# /sbin/augenrules --load
At the command line, execute the following command:
# auditctl -l | grep -E "(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow)"
Expected result:
-w /etc/passwd -p wa -k passwd
-w /etc/shadow -p wa -k shadow
-w /etc/group -p wa -k group
-w /etc/gshadow -p wa -k gshadow
If the output does not match the expected result, this is a finding.
V-239116
False
PHTN-67-000045
At the command line, execute the following command:
# auditctl -l | grep -E "(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow)"
Expected result:
-w /etc/passwd -p wa -k passwd
-w /etc/shadow -p wa -k shadow
-w /etc/group -p wa -k group
-w /etc/gshadow -p wa -k gshadow
If the output does not match the expected result, this is a finding.
M
5323