You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Domenico Actis Grosso <ne...@tiscali.it> on 2003/10/18 21:17:01 UTC

[users@httpd] let php run with right user/group

I to all , i've a little question for you....


I'm running apache (2.0.40 installed via rpm) + php (via rpm) with suexec up
and running...

I would like to do this :

when a user set a php script (non cgi) i.e for uploading something ,what can
i do to force user and group of uploaded file to be user/group of the vhost
calling that script ? (i've read something about phpsuexec...) and how to
set something like an umask to correctly set the rights of the uploaded file
?

Thank for your help


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] let php run with right user/group

Posted by Leif W <wa...@usa.net>.
Hello,

Normally you might need to be a bit more patient and it could take a few
days for people to respond.  :-)

I've wondered about this myself, and have not come up with a good answer.  I
searched for phpsuexec, but could only find some patch files, but not a
website with docs and developer contacts and such.  I went to
http://php.net/ and looked in their docs and FAQs section and read some of
the user comments and found mention of suphp project at http://suphp.org/ ,
but this is for Apache 1.3 only.  It took some docs reading to find that
out.  The only way I am aware of to do this in Apache 2 is to compile php as
a cgi binary, and not use it as a DSO or static module (there are some raw
performance implications of doing this), and then use a program like cgiwrap
to help verify that a script is running as the proper user and group
permissions.

Hope this helps,

Leif

----- Original Message ----- 
From: "Domenico Actis Grosso" <ne...@tiscali.it>
To: <us...@httpd.apache.org>
Sent: Saturday, October 18, 2003 8:37 PM
Subject: Re: [users@httpd] let php run with right user/group


> pls help me
> ----- Original Message -----
> From: "Domenico Actis Grosso" <ne...@tiscali.it>
> To: <us...@httpd.apache.org>
> Sent: Saturday, October 18, 2003 9:17 PM
> Subject: [users@httpd] let php run with right user/group
>
>
> > I to all , i've a little question for you....
> >
> >
> > I'm running apache (2.0.40 installed via rpm) + php (via rpm) with
suexec
> up
> > and running...
> >
> > I would like to do this :
> >
> > when a user set a php script (non cgi) i.e for uploading something ,what
> can
> > i do to force user and group of uploaded file to be user/group of the
> vhost
> > calling that script ? (i've read something about phpsuexec...) and how
to
> > set something like an umask to correctly set the rights of the uploaded
> file
> > ?
> >
> > Thank for your help
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] let php run with right user/group

Posted by Domenico Actis Grosso <ne...@tiscali.it>.
pls help me
----- Original Message -----
From: "Domenico Actis Grosso" <ne...@tiscali.it>
To: <us...@httpd.apache.org>
Sent: Saturday, October 18, 2003 9:17 PM
Subject: [users@httpd] let php run with right user/group


> I to all , i've a little question for you....
>
>
> I'm running apache (2.0.40 installed via rpm) + php (via rpm) with suexec
up
> and running...
>
> I would like to do this :
>
> when a user set a php script (non cgi) i.e for uploading something ,what
can
> i do to force user and group of uploaded file to be user/group of the
vhost
> calling that script ? (i've read something about phpsuexec...) and how to
> set something like an umask to correctly set the rights of the uploaded
file
> ?
>
> Thank for your help
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org