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.