clean_tmp

clean_tmp deletes files in directories you specify (usually /tmp, /var/tmp, ...) which meet conditions you specify (i.e. not owned by root, not accessed in the last day, ...) If clean_tmp encounters a file with time stamp greater than the current time, it will stamp the file with the current time. This is to make it more difficult to circumvent clean_tmp using touch. You may want to run clean_tmp from root's crontab every day.

Example /etc/crontab entry:

0  0  *  *  *  root  /usr/sbin/clean_tmp


Robert Davidson