Re: controlling ownership on file uploads ...
| From: | Kenn Murrah | Date: | Wed, 27 Nov 2002 19:27:09 +0000 |
| Subject: | Re: controlling ownership on file uploads ... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126339@lists.php.net to get a copy of this message | ||
but if i don't have the permissions to do that ... ???
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.biz>
To: <php-general@lists.php.net>
Sent: Wednesday, November 27, 2002 11:35 AM
Subject: Re: [PHP] controlling ownership on file uploads ...
> On Thursday 28 November 2002 01:04, Adam Voigt wrote:
> > exec("/bin/chown newuser:newuser /path/to/file");
>
> The user running apache (in this case 'www') will most likely not have
the
> requisite permissions to perform that operation.
>
> > On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote:
> > > Greetings.
> > >
> > > I've written a simple form to allow my clients to upload files to me,
and
> > > it works fine EXCEPT that the uploaded file is owned by "www" and I
while
> > > I can read the file, I don't have the necessary permissions to delete
it
> > > when done ...
>
> Use chmod() to make the file(s) rw by 'others'.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Beware of Programmers who carry screwdrivers.
> -- Leonard Brandwein
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>