UCF STIG Viewer Logo

All system start-up files must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-4089 GEN001660 SV-37264r1_rule ECLP-1 Medium
Description
System start-up files not owned by root could lead to system compromise by allowing malicious users or applications to modify them for unauthorized purposes. This could lead to system and network compromise.
STIG Date
Red Hat Enterprise Linux 5 Security Technical Implementation Guide 2017-03-01

Details

Check Text ( C-35954r1_chk )
Check run control scripts' ownership.
# ls -lL /etc/rc* /etc/init.d

Alternatively:
# find /etc -name "[SK][0-9]*"|xargs stat -L -c %U:%n

If any run control script is not owned by root or bin, this is a finding.
Fix Text (F-31210r1_fix)
Change the ownership of the run control script(s) with incorrect ownership.
# find /etc -name "[SK][0-9]*"|xargs stat -L -c %U:%n|egrep -v "^root:"|cut -d: -f2|xargs chown root