Rule ID
SV-44931r1_rule
Version
V1R12
CCIs
Restricting permission on daemons will protect them from unauthorized modification and possible system compromise.
Check the mode of network services daemons.
# find /usr/sbin -type f -perm +022 -exec stat -c %a:%n {} \;
This will return the octal permissions and name of all files that are group or world writable.
If any network services daemon listed is world or group writable (either or both of the 2 lowest order digits contain a 2, 3 or 6), this is a finding.
Note: Network daemons not residing in these directories (such as httpd or sshd) must also be checked for the correct permissions.Change the mode of the network services daemon. # chmod go-w <path>