0056-rc.local-priv-rc.local Permissions Modified
Rule ID
Category
Level
Compatible Versions
Description
- Monitor whether the permissions of the host file
/etc/rc.local have been modified.
Scan Frequency
Rationale
- The rc.local script is a script that automatically executes after a Linux system boots. Command-line instructions that need to start at boot can be added to this script.
Risk
- Functionality Unavailable
Audit Method
- Run the following command and verify that Uid and Gid are both 0/root, and permissions are 755:
stat /etc/rc.d/rc.local
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
- If the
/etc/rc.local file permissions are detected to have been changed, log in to the server as root, restore the permissions, and audit the change.
Impact
Default Value
References
CIS Controls