Re: touch
| From: | Egan | Date: | Sat, 06 Jan 2001 00:27:42 +0000 |
| Subject: | Re: touch | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32990@lists.php.net to get a copy of this message | ||
On Fri, 5 Jan 2001 16:18:12 -0800 (PST), jeremy brand
<jeremy@nirvani.net> wrote:
>It is probably your operating system. The user (or level) that your
>webserver runs as must have the ability to do this before PHP can
>inherite the rights from your webserver.
>> I have safe_mode off and touch still cannot create a file. Is this a
>> PHP security issue, or Apache?
>>
>> Egan
I was getting ready to answer my own question because I realized the
same thing a few minutes later. Duh!
I changed the directory to make it group writable, and then it worked,
but that causes another problem.
Apache is running as wwwrun/nogroup -- so wwwrun is now the owner of
the newly created file. But I wanted the owner to be the same as the
owner of the parent directory.
Any easy way to do that?
Egan