bug-cfengine
[Top][All Lists]
Advanced

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

Re: files not setting owner for directories


From: Jim Wight
Subject: Re: files not setting owner for directories
Date: Wed, 03 Aug 2005 15:16:08 +0100

Back in March I reported as follows:

        directories:
                /tmp/binowned           owner=bin
        
        files:
                /tmp/binowned2/         owner=bin action=create
        
        results in
        
        # ls -ld /tmp/binowned*
        drwxr-xr-x  2 bin  root 48 Mar 18 12:16 /tmp/binowned
        drwxr-xr-x  2 root root 48 Mar 18 12:16 /tmp/binowned2
        
        That was with 2.1.13.
        
and Mark replied saying that the bug had been found and fixed for
2.1.14. I haven't used 2.1.4, but I've just upgraded some machines to
2.1.15 and the bug is (still) present.

Now I've found another problem in the same area:

        files:
                /tmp/file1      owner=bin action=touch
                /tmp/file2      owner=bin action=touch

results (on the first run) in

# ls -l /tmp/file[0-9]
----------  1 bin  root 0 Aug  3 15:00 /tmp/file1
-rwxr-xr-x  1 root root 0 Aug  3 15:00 /tmp/file2

The owner of file2 is, as expected, corrected on the second run. There
is no mention of the default mode under 'touch', but the documentation
says that it is 0644 for 'create'; however, it gets it wrong too. Of
course it is easy enough to get the modes right by setting them
explicitly. 

Jim






reply via email to

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