Re: crontab for nobody

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux