[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfengine-help
Subject:    Re: 'tidy' question
From:       janderso () ncbi ! nlm ! nih ! gov (John S !  J !  Anderson)
Date:       2004-06-21 21:42:50
Message-ID: wen4qp4oaed.fsf () slate ! ncbi ! nlm ! nih ! gov
[Download RAW message or body]

Armin Wolfermann <aw@osn.de> writes:

> * John S. J. Anderson <janderso@ncbi.nlm.nih.gov> [16.06.2004 00:07]:
>> I'd like to define a 'tidy' action that will clean up /tmp on our
>> machines. However, I need to exclude files owned by root from this
>> tidy action. It seems like the way to do this is to use a filter,
>> but I can't seem to find the filter syntax to say "all users save
>> this one". 
>>
>> Is a filter the right approach? If so, what would that filter look
>> like? 
>
> I would use something like:
>
> filters:
>     { notroot
>     Type:   "reg"
>     Owner:  "root"
>     Result: "Type.!Owner"
>     }

  Thanks, this is basically what I ended up doing -- although I had to
  expand Type to be 'reg|link|dir' really get the effect that I wanted.

thanks again, 
john.
-- 
John S J Anderson, Ph.D.         [ Contractor ]     +1.301.402.7499
Chief Penguin Herder & Linux Team Lead, Systems Group, NCBI/NLM/NIH
"So here's a picture of reality: (picture of circle with lots of
sqiggles in it) As we all know, reality is a mess." -- Larry Wall



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic