help-cfengine
[Top][All Lists]
Advanced

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

RE: Solaris BSM auditing with editfiles


From: Luke Youngblood
Subject: RE: Solaris BSM auditing with editfiles
Date: Wed, 4 May 2005 22:58:59 -0400

A truly simple and elegant solution!  I never would have thought to have
crontab load the original (yet modified) crontab on top of itself.  I would
have put it into a temp file and loaded that, but your solution is much
easier (the way most good Unix solutions are).

Cheers,
Luke

-----Original Message-----
From: Dmitry Sazonov [mailto:dsazonov@aamc.org] 
Sent: Wednesday, May 04, 2005 10:01 PM
To: help-cfengine@gnu.org
Cc: Luke Youngblood
Subject: Re: Solaris BSM auditing with editfiles

On Wednesday 04 May 2005 02:50 pm, Luke Youngblood wrote:
> Consider the following section of code:
> 
>  
control:
         AddInstallable  = ( reload_crontab )
> 
> editfiles:
>  
>   { /var/spool/cron/crontabs/root
>  
>   AutoCreate
>   DeleteLinesContaining "cfwrap"
>   AppendIfNoSuchLine "0,30 * * * * /usr/local/sbin/cfexecd -F"
     DefineClasses "reload_crontab"
>   }
> 
>  
shellcommands:
  reload_crontab::
    "/usr/bin/crontab /var/spool/cron/crontabs/root"
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]