[CentOS] crontab for nobody

Anne Wilson cannewilson at googlemail.com
Sun Jul 20 21:04:00 UTC 2008


On Sunday 20 July 2008 21:23:52 Stephen Harris wrote:
> On Sun, Jul 20, 2008 at 07:18:05PM +0100, Anne Wilson wrote:
> > On Sunday 20 July 2008 17:44:23 Bill Campbell wrote:
> > > Does anything show up with ``find /var/spool/cron -type f''?
> >
> > /var/spool/cron/apache
> > /var/spool/cron/rpc
>
> [43 more lines deleted]
>
> Wow, looks like somebody or something has created crontab entries for
> every user on your machine.  That's wrong.  Typically, out of the box,
> there are no entries.
>
> What does
>   find /var/spool/cron -type f ! -size 0
> show?
>
Does that mean 'not = size 0'?

/var/spool/cron/anne
/var/spool/cron/root
/var/spool/cron/david

These are as expected.  They run rsync commands for backup.

> Hopefully it will be nothing.
>
> This can be used to delete all the zero length entries:
>   find /var/spool/cron -type f -size 0 -exec rm {} \;
>
> Now this is a cleanup of the problem, but it doesn't explain _how_ those
> entries were created in the first place.  Are you using some form of
> automated admin interface?

I can't think of anything that explains this.  I have a 6-month-old CentOS 5.2 
install, with nothing out of the ordinary, as far as I can recall.

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20080720/18887b25/attachment.sig>


More information about the CentOS mailing list