On 11/12/2012 9:33 PM, "Toni Moreno" <toni.mor...@gmail.com> wrote:
>
> 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
>

Put umask 022 in the /etc/apache2/envvars file.

> 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
>
>

Reply via email to