On Tue Mar 28 2000 at 17:24, Erik Parker wrote:

> On Redhat they use some stupid utility called "tmpwatch" that runs from
> cron daily.. it removes files older than a certain date.
> 
> /etc/cron.daily/tmpwatch
> 
> also man tmpwatch

It's definitely not stupid.  They have managed to set this task up to
do in a fairly generic and sensible fashion by default.  I set up and
manage dozens of linux boxes, and if this wasn't happening by default
then there is a real risk of something cluttering and filling /tmp
with junk.  Lots of things use /tmp and they fail if there isn't
enough room to do what is needed.

If you are silly enough not to use /tmp AS /tmp and expect things to
hang around in there, then you are not managing your system correctly.

One suggestion - if you must do this for users that need it - is to
put files for storage into /home/tmp and chmod 1777 /home/tmp (and
adjust file quotas if you need to manage disk space usage on a
multi-user system).  /home should be on a separate partition that is
backed up regularly.

> On Wed, 29 Mar 2000, Julius C. Duque wrote:
> 
> > On Sun, 26 Mar 2000, John Anthony Kazos Jr. wrote:
> >
> > > I have been mysteriously losing files, but only from /tmp, and it is pissing me
> > > off. Does /tmp periodically clear out its files? If so, how do I turn this off,
> > > and *why was there no information stating this happens*?
> >
> > /tmp stands for "temporary" which means that everything in this
> > directory will be deleted soon on a regular basis. This is also
> > the first directory to look at if you're having disk shortage.
> > Unfortunately, I don't know exactly how to switch off this
> > periodic purging :-(. I think there is a file on /etc that you
> > can edit to configure this behavior.

Cheers
Tony

Reply via email to