httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toni Moreno <toni.mor...@gmail.com>
Subject [users@httpd] mod_fcgid upload permission changes.
Date Tue, 11 Dec 2012 10:33:06 GMT
Hi to all ,and sorry form my poor English.

I have a problem when trying upload files and handle it with mod_fcgid.

The fact is I'm running apache 2.2.16 on debian and runing it as user
"itsat" which have "0022" umask. ( user "itsat" creates files in 644 mode).

itsat@test:/tmp$ touch foo
itsat@test:/tmp$ ls -ltr
total 252
drwxrwxrwt 2 root  root         40 dic 11 08:51 VMwareDnD
drwx------ 2 root  root        100 dic 11 08:51 vmware-root
-rw-r--r-- 1 itsat itsatadm      0 Dec 11 11:02 foo

But when doing an "upload" ( from any browser)  the mod_fcgid creates a tmp
file with 600 permissions !!  ( an lots of problems after because I can not
read it from a CGI program who expects 644 permissions.


itsat@test:/tmp$ ls -ltr
total 252
drwxrwxrwt 2 root  root         40 Dec 11 08:51 VMwareDnD
*-rw------- 1 itsat itsatadm 245806 Dec 11 11:03 fcgid.tmp.PEozaa*
-rw-r--r-- 1 itsat itsatadm      0 Dec 11 11:20 foo
drwx------ 2 root  root        100 Dec 11 08:51 vmware-root


Can anybody help me to change this behavior on apache/mod_fcgid ?

Thanks!!!

-- 

Att

Toni Moreno

699706656



*Si no quieres perderte en el olvido tan pronto como est├ęs muerto y
corrompido, *

*escribe cosas dignas de leerse, o haz cosas dignas de escribirse.*



*Benjamin Franklin*

Mime
View raw message