help-cfengine
[Top][All Lists]
Advanced

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

RE: 'files' skipping my directories


From: Sean Lally
Subject: RE: 'files' skipping my directories
Date: Tue, 28 Jan 2003 11:34:25 -0800

"Directory permissions
When you specify the permissions for a whole file tree, using the recursion 
specifier it is awkward to have to remember that directories must be 
executable. cfengine will do this for you automatically. If you specify that a 
file tree is to have a read flag set, cfengine will ensure that the 
corresponding execute flag is also set for directories which live in the tree. 
So the command 

files:

  myclass::

      /dir  mode=a+rw r=inf fixall


would set all plain files to mode 644 and all directories to 755, that is 
read/write for everyone on plain files and read/write/execute for everyone on 
directories. "

from: http://www.cfengine.com/docs/cfengine-Reference.html#files

Says that it should be changing permissions on the directories as well.  Based 
on that I'd say this functionality is broken now.  Hope I'm not overlooking 
anything.

Sean

-----Original Message-----
From: Luke A. Kanies [mailto:address@hidden
Sent: Tuesday, January 28, 2003 11:26 AM
To: address@hidden
Subject: Re: 'files' skipping my directories


On Mon, 27 Jan 2003, Luke A. Kanies wrote:

> I'm trying to configure cfengine to verify the permissions on my oracle
> server, but when I use the 'files' command to try to recursively set the
> permissions of a directory, that directory gets ignored.  I've tried it on
> multiple directories and they always get ignored, whereas files never do.

I figured out the problem, kind of.

It looks like the 'files' section is only checking files, not directories.
In other words, it will correct ownership and permission problems on
files, but not on directories containing those files.

I looked at the 'directories' section, but it looks like that's
specifically for creating directories and thus can not be done
recursively.

Is there some flag I need to give 'files' to make it also check the
directories?  I really do need to manage the directory ownerships in
addition to the file ownerships.

Thanks,
Luke

-- 
Q.  Does Usenet help stamp out ignorance?
A.  That depends on whether by "stamp out" you mean "eliminate" or
    "reproduce rapidly in great quantity."
                -- From the Usenet FAQ


_______________________________________________
Help-cfengine mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cfengine




reply via email to

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