Sometimes it is good to have core files blown away when you don't want them. Use the following to blown away core files on your system on a nightly basis.
0 2 * * * find / -local -name core -exec
rm {} \;
Danger of Cron Jobs
Make sure all scripts called by cron (especially the root jobs) have proper permissions and do not lie in user's home directory.
If these scripts call other scripts/commands make sure these scripts/commands as well are secure.
An intruder on finding any script called via cron can make changes to
these scripts if he/she has write permissions and gain
further access to the system. Also make sure these scripts do not modify
the PATH variable to have "." in the PATH
Return to : Unix System Administration
Hints and Tips