httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] mod_fcgid upload permission changes.
Date Tue, 11 Dec 2012 11:47:44 GMT
On 11/12/2012 10:42 PM, "Igor Cicimov" <icicimov@gmail.com> wrote:
>
>
> On 11/12/2012 9:33 PM, "Toni Moreno" <toni.moreno@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.
>
Or call umask from your cgi script if you like better. Or chmod the file
from the cgi script after uploading as another option. In these cases the
change will not be global in apache.

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