SV-227840r603266_rule
V-227840
SRG-OS-000312
GEN004400
CAT I
10
Edit the /etc/mail/aliases file (alternatively, /usr/lib/sendmail.cf). Locate the entries executing a program. They will appear similar to the following line.
Aliasname: : /usr/local/bin/ls (or some other program name)
Ensure root owns the programs and the directory(ies) they reside in by using the chown command to change owner to root.
Procedure:
# chown root filename
Find the aliases file on the system.
Procedure:
# find / -name aliases -depth -print
# more < aliases file location >
Examine the aliases file for any directories or paths that may be utilized.
Procedure:
# ls -lL < path >
Check if the file or parent directory is owned by root. If not, this is a finding.
V-227840
False
GEN004400
Find the aliases file on the system.
Procedure:
# find / -name aliases -depth -print
# more < aliases file location >
Examine the aliases file for any directories or paths that may be utilized.
Procedure:
# ls -lL < path >
Check if the file or parent directory is owned by root. If not, this is a finding.
M
4061