Centos – Why are files being removed from /tmp

centostmptmpwatchunix

I use centOS5,
but these files of /tmp is deleted automatically when time passes.
What kind of structure will this kill him in?
In addition, How to stop this?

Best Answer

If you have tmpwatch installed

# rpm -qa | grep tmpwatch
tmpwatch-2.9.7-1.1.el5.2

Then that will be clearing your /tmp regularly (it is called tmp for a reason)

tmpwatch is run from cron on a daily basis, check out /etc/cron.daily/tmpwatch

Related Topic