[CentOS] Deleting contents of /tmp on shutdown

Thomas Dukes tdukes at sc.rr.com
Sun Dec 13 00:35:51 UTC 2009


 

> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Larry Brower
> Sent: Saturday, December 12, 2009 6:47 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] Deleting contents of /tmp on shutdown
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Thomas Dukes wrote:
> <snip>
> >>
> >> I have the /tmp in memory, which effectively deletes everything on 
> >> reboot. Maybe another solution?
> >>
> >> Cheers Didi
> > 
> > Hi Didi,
> > 
> > I read that was an option also.  How would I move my /tmp to RAM?
> > 
> > TIA
> > 
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> 
> +1 for tmpfs :)
> 
> Heres an example:
> 
> http://www.howtoforge.com/storing-files-directories-in-memory-
> with-tmpfs
> 
> 

Thanks for the link.  It's a little over my head though.  I run a simple
system that requires very little involvement on my part.

Today, I found upd.pl in my tmp directory.  The date was oct 09.  I also
found my /etc/passwd and /etc/shadow had been changed with a user of
0Profile added.  I deleted the old files and restored those from backup.  I
ran my chkrootkit and installed mod_security.  SSH is not running so I don't
know how this happened.

I'm running CentOS 5.4 and everyone should check their system!!



More information about the CentOS mailing list