help-cfengine
[Top][All Lists]
Advanced

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

Re: cfexecd and chmod($input_dir)


From: Chip Seraphine
Subject: Re: cfexecd and chmod($input_dir)
Date: Tue, 8 Jun 2004 11:47:38 -0500
User-agent: KMail/1.5.4

I have the same problem.  I wanted mine to be 1770 in order to allow sysadmins 
to set flag files as themselves instead of root (so we could better account 
for who did what), but all it did was fight with the hard coded chmod...

On Saturday 05 June 2004 03:12, address@hidden wrote:
> 
> The directory must be trusted. Why do you care?
> 
> M
> 
> On  4 Jun, Will Lowe wrote:
> > I'm running v 2.1.0p1.
> > 
> > Why does cfexecd insist on doing chmod($input_dir) whenever it runs?
> > There's nothing secret in my cfagent configs, so I had update.conf set
> > to set the input dir to 0755.
> > 
> > Looks like the code is at line 218 in cfexecd.c:
> > 
> > snprintf(VBUFF,bufsize,"%s/inputs",WORKDIR);
> > chmod(VBUFF,0700); 
> > snprintf(VBUFF,bufsize,"%s/outputs",WORKDIR);
> > chmod(VBUFF,0700);
> > 
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  address@hidden
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 

-- 

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
address@hidden





reply via email to

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