copy function creates mode 600 by default ?

2006-03-20 Thread stucky
Guys I think my /etc/hosts permission problem might have to do with the way cfagent copies files. "...by copying first to a file called file.cfnew on the local filesystem, and then renaming it this quickly into place." Question is what default permission does hosts.cfnew have - I'm inclined to

Setting variables based on classes in an imported file

2006-03-20 Thread Josh Smith
[* I sent this message to the old gnu.org list, and only got one reply (with a clever but somewhat hackish workaround), so I'm re-sending it to the new cfengine.org list in case others have other ideas. *] I'm trying to split my class definitions into a cfgroups.conf file, so that my update.

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Jason Martin
On Mon, Mar 20, 2006 at 11:11:37AM -0800, stucky wrote: > [EMAIL PROTECTED] stucky]# ls -l /etc/hosts > -rw-r--r-- 1 root root 228 Mar 20 11:09 /etc/hosts > [EMAIL PROTECTED] stucky]# /var/cfengine/bin/cfagent -qB > [EMAIL PROTECTED] stucky]# ls -l /etc/hosts > -rw-r--r-- 1 root root 228 Mar 20 1

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Jason Martin
On Mon, Mar 20, 2006 at 11:11:37AM -0800, stucky wrote: > [EMAIL PROTECTED] stucky]# ls -l /etc/hosts > -rw-r--r-- 1 root root 228 Mar 20 11:09 /etc/hosts > [EMAIL PROTECTED] stucky]# /var/cfengine/bin/cfagent -qB > [EMAIL PROTECTED] stucky]# ls -l /etc/hosts > -rw-r--r-- 1 root root 228 Mar 20 1

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Atom Powers
On 3/20/06, stucky <[EMAIL PROTECTED]> wrote: > cfengine:sandbox: Update of image /etc/hosts from master > /usr/local/cfengine/masterfiles/configs/generic/hosts on > 10.152.48.15 > cfengine:sandbox: Object /etc/hosts had permission 600, changed it to 644 What does that files section look like? I

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Jason Martin
On Fri, Mar 17, 2006 at 02:01:35PM -0800, stucky wrote: > thing. I'm pretty sure the perms get changed during > the update phase - wherelse would it happen ? There is nothing else running > that would adjust the /etc/hosts file. You can run cfagent -qB to only run the update section, that will help

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread stucky
[EMAIL PROTECTED] stucky]# ls -l /etc/hosts -rw-r--r--  1 root root 228 Mar 20 11:09 /etc/hosts [EMAIL PROTECTED] stucky]# /var/cfengine/bin/cfagent -qB [EMAIL PROTECTED] stucky]# ls -l /etc/hosts -rw-r--r--  1 root root 228 Mar 20 11:09 /etc/hosts [EMAIL PROTECTED] stucky]# /var/cfengine/bin/cfage

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Jason Martin
On Fri, Mar 17, 2006 at 02:01:35PM -0800, stucky wrote: > thing. I'm pretty sure the perms get changed during > the update phase - wherelse would it happen ? There is nothing else running > that would adjust the /etc/hosts file. You can run cfagent -qB to only run the update section, that will help

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread stucky
ok I understand that although if you say cfagent protects the permissions from regular users then why does it complain if I set /var/cfengine to 700 ? In fact, cfagent opens them up again by setting them to 755. I'd understand if the exact opposite was the case. Anyways this still doesn't explain w

Re: dns resolution timeouts

2006-03-20 Thread KELLY BROWN
Tried BindToInterface, doesn't help.  Let me show you where I get stuck, I don't think it even gets to read my configs before it starts timing out on dns. [EMAIL PROTECTED]:/var/lib$ sudo cfagent -q -v Setting cfengine new port to 5308 Setting cfengine old port to 5308 Reference time set to Mon Ma

Re: dns resolution timeouts

2006-03-20 Thread Mark Burgess
Eli Stair wrote: I've seen mention of adding functionality to CFE in the future to assign it to an interface to use, but a quickie in your case may be to just add a static route to the IP of your cfengine server and adding its entry in /etc/hosts. /eli -Original Message- From: [EMA

RE: dns resolution timeouts

2006-03-20 Thread KELLY BROWN
Title: RE: dns resolution timeouts I can get to my cfengine server from the interface that has the ip address in dns on it.  That's why I just want to completely ignore the other interface, it doesn't need it.  Adding entries for the hosts file would be cumbersome as the ip addresses on that interf

RE: dns resolution timeouts

2006-03-20 Thread Eli Stair
Title: RE: dns resolution timeouts I've seen mention of adding functionality to CFE in the future to assign it to an interface to use, but a quickie in your case may be to just add a static route to the IP of your cfengine server and adding its entry in /etc/hosts. /eli -Original Messa

dns resolution timeouts

2006-03-20 Thread KELLY BROWN
Hello all: I have a cfengine client that has to physical interfaces.  One it uses to talk to cfengine and it has an ip address that is in dns.  The other it would like cfagent to ignore completely as it's causing a problem with dns timeouts as it's ip addresses are not in dns.  Is there some way f

Closing old lists

2006-03-20 Thread Mark Burgess
If you have just joined the cfengine mailing lists at gnu.org then it is possible that we have not transferred you over to the new lists. In that case, please subscribe to the lists manually help-cfengine@cfengine.org bug-cfengine@cfengine.org instead. you will find web links to these at htt

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Mark Burgess
Jason Martin wrote: On Fri, Mar 17, 2006 at 10:52:09AM -0800, stucky wrote: I had sent this before but maybe I was a little fast cause my list enrollment confirmation hadn't come in yet. Now I'm thinking the stuff got lost so I'm sending it again. Sorry if it shows up twice. Is cf.precon

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Mark Burgess
Jason Martin wrote: On Fri, Mar 17, 2006 at 10:52:09AM -0800, stucky wrote: I had sent this before but maybe I was a little fast cause my list enrollment confirmation hadn't come in yet. Now I'm thinking the stuff got lost so I'm sending it again. Sorry if it shows up twice. Is cf.precon

Re: dir perm on /var/cfengine keeps getting reset to 755

2006-03-20 Thread Jason Martin
On Fri, Mar 17, 2006 at 10:52:09AM -0800, stucky wrote: > I had sent this before but maybe I was a little fast cause my list > enrollment confirmation hadn't come in yet. > Now I'm thinking the stuff got lost so I'm sending it again. > Sorry if it shows up twice. Is cf.preconf resetting the dir pe

Bottle of champagne

2006-03-20 Thread Mark Burgess
This message signifies that the cfengine lists at cfengine.org are now active and for use. The old lists at gnu.org are now officially deprecated. The new lists are also tied into news as before. Mark ___ Help-cfengine mailing list Help-cfengine@cf