[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'files' skipping my directories
From: |
Mark . Burgess |
Subject: |
Re: 'files' skipping my directories |
Date: |
Tue, 28 Jan 2003 20:57:53 +0100 (MET) |
On 28 Jan, Luke A. Kanies wrote:
> 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
>
This works fine for me....
control:
actionsequence = ( files )
files:
/iu/nexus/ud/mark/comp/Tests/dir1
r=inf
owner=www
mode=640
group=uucp
action=fixall
Checking file(s) in /iu/nexus/ud/mark/comp/Tests/dir1
cfengine:nexus: Skipping ignored directory /iu/nexus/ud/mark/comp/Tests/dir1
cfengine:nexus: /iu/nexus/ud/mark/comp/Tests/dir1 had permission 700, changed
it to 750
cfengine:nexus: /iu/nexus/ud/mark/comp/Tests/dir1/dir2 had permission 700,
changed it to 750
cfengine:nexus: /iu/nexus/ud/mark/comp/Tests/dir1/dir2/y had permission 600,
changed it to 640
cfengine:nexus: /iu/nexus/ud/mark/comp/Tests/dir1/x had permission 600, changed
it to 640
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~