[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
editfiles messing up file permissions?
From: |
Hanus Adler |
Subject: |
editfiles messing up file permissions? |
Date: |
Mon, 1 Jan 2001 11:38:50 +0100 |
User-agent: |
slrn/0.9.6.2 (Linux) |
Hi
it seems that cfengine (version 1.6.1 on Linux) doesn't preserve file
permissions when the file is edited with editfiles. I don't think this
behaviour is correct, at least I didn't expect it to happen. I found
nothing about it in the documentation.
I would suggest that instead of removing the original file cfengine
might just overwrite the file with new contents, that way the
owner/permissions would remain untouched.
BTW I also tried to use the following setup with Umask "022" but it says
"cfengine:dwarf: Unknown action in editing of file /etc/hosts". Am I
missing something?
editfiles:
any::
{ /etc/hosts
DefineClasses "RepairPermissions"
Umask "022"
SetLine "127.0.0.1 localhost
localhost.localdomain"
AppendIfNoLineMatching "^127\.0\.0\.1.*"
}
greetings
Hanus Adler
--
_____ ______ ___ ___ ___ __
| __ \| ____| |__ \ / _ \ / _ \/_ |
| |__) | |__ ) | | | | | | || |
| ___/| __| / /| | | | | | || |
| | | | / /_| |_| | |_| || |
|_| |_| |____|\___/ \___/ |_|
- editfiles messing up file permissions?,
Hanus Adler <=