help-cfengine
[Top][All Lists]
Advanced

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

Re: editfiles AutoCreate options


From: Chris Edillon
Subject: Re: editfiles AutoCreate options
Date: Thu, 30 Jan 2003 00:07:28 -0400 (GMT+4)

On Thu, 30 Jan 2003, Jamie Wilkinson wrote:

> Hi Mark and everyone
> 
> I've currently got a large section of my config inputs doing a files:
> followed by an editfiles: section.  The files: is only there to make
> sure the permissions on the newly created editfiles are correct.
> 
> What I'd like to see is some optional arguments to the AutoCreate
> command to specify the mode, owner and group, rather than sticking to
> the default 0644, and have AutoCreate check the existing permissions
> if the file doesn't need to be created.
> 
  there is a Umask action which you should be able to set a per-edit
umask with autocreate:

editfiles:
    any::
        { /tmp/foo
          Umask "027"
          AutoCreate
          ...
        }

according to the reference this should override the default mode.

chris





reply via email to

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