crontab Core Removals

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

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.