SV-226930r603265_rule
V-226930
SRG-OS-000312
GEN004360
CAT II
10
Change the owner of the /etc/mail/aliases file (or equivalent, such as /usr/lib/aliases) to root.
Procedure:
# chown root /etc/mail/aliases
Find the alias file on the system.
Procedure:
# egrep '^O(A| AliasFile)' /etc/mail/sendmail.cf
If the "alias file" is an NIS or LDAP map, this check is not applicable. The default location is /etc/mail/aliases.
Check the ownership of the alias file.
Procedure:
# ls -lL <alias file>
If the alias file is not owned by root, this is a finding.
V-226930
False
GEN004360
Find the alias file on the system.
Procedure:
# egrep '^O(A| AliasFile)' /etc/mail/sendmail.cf
If the "alias file" is an NIS or LDAP map, this check is not applicable. The default location is /etc/mail/aliases.
Check the ownership of the alias file.
Procedure:
# ls -lL <alias file>
If the alias file is not owned by root, this is a finding.
M
4060