[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating, fixing files
From: |
Chris St. Pierre |
Subject: |
Re: creating, fixing files |
Date: |
Thu, 11 May 2006 13:50:41 -0500 (CDT) |
Try getting rid of the action=fixall. From the manual:
The touch facility creates a new file with the specified permissions
and ownership, or corrects the permissions and ownership of an
existing file,...
It then goes on to say that create is almost exactly like touch. It
sounds like you don't need the fixall, and that's what's causing the
problem.
Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University
On Thu, 11 May 2006, Atom Powers wrote:
> I am trying to write a rule that creates a file, directory if it
> doesn't exist, and enfoce ACLs on it if it does. I am trying to use:
> --
> /var/log/service.log
> mode=640 owner=service group=wheel
> action=create
> action=fixall
> --
>
> But this doesn't work, it failes because it's trying to fix a file
> that doesn't exist.
> --
> cfengine:host: Cannot access file/directory /var/log/service.log
> cfengine:host: File/Dir /var/log/service.log did not exist and was
> marked (fixall)
> --
>
> What is the correct way to do this?
>
> --
> --
> Perfection is just a word I use occasionally with mustard.
> --Atom Powers--
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
>