DISA STIGS Viewer

RHEL 9 permissions of cron configuration files and directories must not be modified from the operating system defaults.

Overview

Finding ID Version Rule ID IA Controls Severity
V-257888 RHEL-09-232040 SV-257888r1069378_rule   Medium
Description
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.
STIG Date
Red Hat Enterprise Linux 9 Security Technical Implementation Guide 2025-05-14

Details

Check Text (C-61629r1069376_chk)
Run the following command to verify that the owner, group, and mode of cron configuration files and directories match the operating system defaults:

$ rpm --verify cronie crontabs | awk '! ($2 == "c" && $1 ~ /^.\..\.\.\.\..\./) {print $0}'

If the command returns any output, this is a finding.
Fix Text (F-61553r1069377_fix)
Run the following commands to restore the permissions of cron configuration files and directories to the operating system defaults:

$ sudo dnf reinstall cronie crontabs
$ rpm --setugids cronie crontabs
$ rpm --setperms cronie crontabs