BaselineWatch
Desk

RHEL-10-400230 RHEL 10 must be configured to prohibit modification of permissions for cron configuration files and directories from the operating system defaults.

DISA STIG library V1R3
All changes in this version
first version loaded CAT II

Maps to CM-7 via CCI-000381

Title

RHEL 10 must be configured to prohibit modification of permissions for cron configuration files and directories from the operating system defaults.

Control

Verify RHEL 10 is configured so that the owner, group, and mode of cron configuration files and directories match the operating system defaults with the following command: $ rpm --verify cronie crontabs | awk '! ($2 == "c" && $1 ~ /^.\..\.\.\.\..\./) {print $0}' If the command returns any output, this is a finding.

Discussion

If the permissions of cron configuration files or directories are modified from the operating system defaults, it may be possible for individuals to insert unauthorized cron jobs that perform unauthorized actions, including potentially escalating privileges.

Related controls

CCI-000381

Fix

Configure RHEL 10 to prohibit modification of permissions for cron configuration files and directories from the operating system defaults with the following commands: $ sudo dnf reinstall cronie crontabs $ rpm --setugids cronie crontabs $ rpm --setperms cronie crontabs