4.7 Enable cron Logging - Check if CRONLOG is set to yes in /etc/default/cron.

Information

Setting the CRONLOG parameter to YES in the /etc/default/cron file causes information to be logged for every cron job that gets executed on the system. This setting is the default for Solaris.

Solution

Perform the following to implement the recommended state-
cd /etc/default
awk '/CRONLOG=/ { $1 = 'CRONLOG=YES' }; { print }' cron > cron.new
mv cron.new cron
pkgchk -f -n -p /etc/default/cron
chown root:root /var/cron/log
chmod go-rwx /var/cron/log

See Also

https://workbench.cisecurity.org/files/614

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c.

Plugin: Unix

Control ID: e46f1a6843f66108f031795f33bb79f1f17ebbe1078b950d14576d60715877d5