[ILUG] mod_umask

Sean O Sullivan seanos at netsoc.itcarlow.ie
Wed Apr 6 09:44:04 IST 2005


Brian Foster wrote:

>  | Date: Tue, 05 Apr 2005 17:37:46 +0100
>  | From: Sean O Sullivan <seanos at netsoc.itcarlow.ie>
>  | 
>  | Curious if anyone has used mod_umask, and if so did they
>  | experience any problems with it ?
>  | From what I can tell it is the only way (other than recompiling
>  | apache) to change the umask of Apache-created files.
>
> files do not have a umask.
> processes have a umask.
>  
>
Yes .... a typo on my behalf

> I presume this thingie changes the umask that is in effect
> when a certain class of file is created, restoring the old
> umask after that creation is done.  if it does not restore
> the old umask, then what is the point?: just set the umask
> before launching Apache, as you do with any other program.
>
>cheers!
>	-blf-
>  
>
The problem is, the umask of apache is hard-coded.
The only way I can see to set it is to recompile (according to the 
gods-of-google).
I tried setting it in the init.d/httpd file, however it had no effect.

I assume the reason mod_umask was created is due to the lack of ability 
to set Apache's umask...
I am curious if anyone has experience in it - there are no bug reports 
in the bug reports section of their site ( 
http://www.outoforder.cc/projects/apache/mod_umask/ ), however that 
doesn't mean there are no bugs...

Regards,

Sean



More information about the ILUG mailing list