Index: [Article Count Order] [Thread]

Date:  Fri, 1 Aug 2008 09:15:24 -0400
From:  "Stephanie Sullivan" <bq (at mark) aviaweb.com>
Subject:  [coba-e:13678] Re: apache suexec
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <015f01c8f3d8$a90742d0$fb15c870$@com>
In-Reply-To:  <109e01c8f3a2$65694b30$967da8c0@thomasferrari>
References:  <0b9201c8f2e4$d3d005f0$967da8c0 (at mark) thomasferrari> <722224.90970.qm (at mark) web65612.mail.ac4.yahoo.com> <00a001c8f308$13d5b640$3b8122c0$ (at mark) com> <48923324.8090704 (at mark) dogsbody.org> <001a01c8f36d$8718bf70$954a3e50$ (at mark) com> <109e01c8f3a2$65694b30$967da8c0 (at mark) thomasferrari>
X-Mail-Count: 13678

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: thomas [mailto:tfj-online (at mark) mail.tele.dk]
> Sent: Friday, August 01, 2008 2:47 AM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:13674] Re: apache suexec
> 
> 
> From: "Stephanie Sullivan"
> 
> > Dan,
> >
> > I have a partial solution for you to try:
> > In /etc/httpd/conf/httpd.conf change
> > Group apache
> > to
> > #Group apache
> > And /etc/init.d/httpd restart
> >
> > This seems to be working for me to get the group ownership correct.
> It
> > does
> > not address the wacky umask issue and the files are created as
> owner-only.
> > I
> > have not come across anything it breaks, but no promises.
> >
> 
> After commenting out the Group in /etc/httpd/conf/httpd.conf I tried
> to
> upload a new file from a php script
> 
> The group was not set to "site29", but to "4294967295", is that ok ?
> (the user is still apache)
> 
> 
> --
> Thomas Jensen
> 

Thomas - I tried my test on another server. I created a directory in the web
root (/web/x) in a valid site with a valid admin user. I protected the
directory a+w so apache could write to it without restriction.

I then ran the following php script in the directory via a http access. It
came from an example on the php.net site:

[alb (at mark) zzzzz x]# more x.php
<?php
$fp = fopen('data.txt', 'w');
fwrite($fp, '1');
fwrite($fp, '23');
fclose($fp);

?>

The script was the only file in the directory before running it. After I
have the file data.txt as is below:

[alb@zzzzz x]# ls -l
total 8
- -rw-r--r--  1 apache site1  3 Aug  1 08:56 data.txt
- -rw-r--r--  1 alb    site1 89 Aug  1 08:56 x.php

I don't know why it does not seem to work for you in this instance.

	Stephanie


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.3 (Build 4028)
Charset: us-ascii

wj8DBQFIkwxtRmFh0h8+YHsRAm+bAJ9yWyX+kGK4F9uIRp6vXGXo4yUeQgCgwC8r
72oDLML9rL7ov2m5qyqgzsk=
=N/il
-----END PGP SIGNATURE-----