4.1.2.8 Ensure access on /var/spool/cron/crontabs is configured

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The /var/spool/cron/crontabs directory contains all of the crontabs for the users on the system.

The /var/spool/cron/crontabs directory contains all of the crontabs for the users on the system. Crontab files present a security problem because they are run by the cron daemon, which runs with super user rights. Allowing other users to have read/write permissions on these files may allow them to escalate their privileges. To negate this risk, the directory and all the files that it contains must be secured.

Solution

Apply the appropriate permissions to /var/spool/cron/crontabs :

chmod -R o= /var/spool/cron/crontabs
chmod ug=rwx,o= /var/spool/cron/crontabs
chown -R root:cron /var/spool/cron/crontabs

See Also

https://workbench.cisecurity.org/benchmarks/10385