The Photon operating system must be configured so that all cron jobs are protected from unauthorized modification.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
---|---|---|---|---|---|---|
medium | V-256565 | SRG-OS-000480-GPOS-00227 | PHTN-30-000096 | SV-256565r991589_rule | 2024-12-16 | 1 |
Description |
---|
If cron files and folders are accessible to unauthorized users, malicious jobs may be created. |
ℹ️ Check |
---|
At the command line, run the following command: # find /etc/cron.d/ /etc/cron.daily/ /etc/cron.hourly/ /etc/cron.monthly/ /etc/cron.weekly/ -xdev -type f -a '(' -perm -022 -o -not -user root ')' -exec ls -ld {} \; If any files are returned, this is a finding. |
✔️ Fix |
---|
At the command line, run the following commands for each returned file: # chmod 644 <file> # chown root <file> |