Re: Specifying File Permissions for Apache/MP2 created files

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

From: jonathan vanasco
Subject: Re: Specifying File Permissions for Apache/MP2 created files
Date: 05:20 on 18 Mar 2005
Just setting a simple umask did do the trick for 90% of my needs

I'm stuck  on one issue though --

     $req = Apache::Request->new($r);
     $upload = $req->upload("foo");
     $upload->link('/path/to/file');

no matter what or when I set the umask, file permissions are unix 600

I say 'when', because I have tried setting the umask when i call the 
link, on the customer handler, and on the startup.pl script that 
httpd.conf calls to preload modules (i kept adding umasks at different 
points to see if it needed to be set before the module got called for 
the first time)

Does anyone have a suggestion?




On Mar 8, 2005, at 12:46 AM, Stas Bekman wrote:
> I see. In which case it has nothing to do in particular with modperl. 
> It's the same with any perl script you run from the command line. It 
> creates the files with the ownership/perms of the user you run the 
> script with... unless you change that with umask as others have 
> suggested.

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

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