Re: Specifying File Permissions for Apache/MP2 created files

[prev] [thread] [next] [Date index for 2005/03/08]

From: jonathan vanasco
Subject: Re: Specifying File Permissions for Apache/MP2 created files
Date: 05:36 on 08 Mar 2005
This was in reference to :

case a)
   open FILE , ">/path/to/file";
   print FILE "";
   close FILE;

case b)
   $upload = $apr->upload("identifier");
   $upload->link("/path/to/file");

I'm sure  there are other cases, such as

In any event:
	 files are created oct(600)	
	directories are created oct(766) (using mkdir or &File::Path::mkpath)

file creation perms can be changed  easily via umask()

however,
	a_ is there a setting to change the default umask behavior in apache 
or mod_perl (ie in httpd.conf)
	b_ is there an accepted 'best practice' to change default umask  
behavior

right now i just umask before the file creation each time, and that 
works,  but like everyone else here, i want what  works best


On Mar 8, 2005, at 12:24 AM, Stas Bekman wrote:
> Could you please be more specific, jonathan? What 'all files' are you 
> talking about?

Re: Specifying File Permissions for Apache/MP2 created files
jonathan vanasco 05:36 on 08 Mar 2005

Generated at 11:30 on 21 Mar 2005 by mariachi v0.52