Re: Specifying File Permissions for Apache/MP2 created files

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

From: Stas Bekman
Subject: Re: Specifying File Permissions for Apache/MP2 created files
Date: 05:46 on 08 Mar 2005
jonathan vanasco wrote:
> 
> This was in reference to :
> 
> case a)
>   open FILE , ">/path/to/file";
[...]
> right now i just umask before the file creation each time, and that 
> works,  but like everyone else here, i want what  works best

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.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: Specifying File Permissions for Apache/MP2 created files
Stas Bekman 05:46 on 08 Mar 2005

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