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?



Reply via email to