Cfengine Help: Re: Setting perms on home directory files

2010-06-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,17127,17532#msg-17532 I'm not sure what files you're suggesting using file_select for but my solution above doesn't use any shell commands. I did have to chan

Cfengine Help: Re: Setting perms on home directory files

2010-06-17 Thread no-reply
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: AS5C0TT Link to topic: https://cfengine.com/forum/read.php?3,17127,17521#msg-17521 Don't forget that you can use files_select instead of all those ugly shell commands http://www.cfengine.org/manuals/cf3-reference.htm

Cfengine Help: Re: Setting perms on home directory files

2010-05-11 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17127,17145#msg-17145 Cf sometimes requires parts of a regex to be escaped. I use the regex tool at cfengine.com to validate.

Cfengine Help: Re: Setting perms on home directory files

2010-05-11 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: RIngersoll Link to topic: https://cfengine.com/forum/read.php?3,17127,17144#msg-17144 Nakarin-- Evidently the hang I'm experiencing is associated with the readstringarray function. If I specify a maximum number of en

Cfengine Help: Re: Setting perms on home directory files

2010-05-11 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,17127,17140#msg-17140 I think you might need to upgrade cfengine. It would be one of the bugs which was already fixed since 3.0.4. Your script worked flaw

Cfengine Help: Re: Setting perms on home directory files

2010-05-10 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17127,17139#msg-17139 I think you can use the readstringarray and skip the command promise altogether. Use the skip regex, that now skips comment lines

Cfengine Help: Re: Setting perms on home directory files

2010-05-10 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: RIngersoll Link to topic: https://cfengine.com/forum/read.php?3,17127,17138#msg-17138 Here's what I have so far: body common control { bundlesequence => { "test"

Cfengine Help: Re: Setting perms on home directory files

2010-05-07 Thread forum
Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,17127,17128#msg-17128 I have done something like this to my machine. Firstly, create a list of users based on directories under /home then ensure ownershi