Re: Uploading Files Via PHP
| From: | Philip J. Newman | Date: | Thu, 27 Mar 2003 18:23:22 +0000 |
| Subject: | Re: Uploading Files Via PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141278@lists.php.net to get a copy of this message | ||
You could chnage the permissions when you want to write something then
change it back when your done. Thats what i do.
/ Phil
----- Original Message -----
From: "Jennifer Goodie" <goodie@apollointeractive.com>
To: "Dan Rossi" <daniel@electroteque.org>; <php-general@lists.php.net>
Sent: Friday, March 28, 2003 6:17 AM
Subject: RE: [PHP] Uploading Files Via PHP
> A world writeable directory is a security risk. Why not just fix the
> owner/group and only give the permissions needed, 775 at most.
>
> -----Original Message-----
> From: Dan Rossi [mailto:daniel@electroteque.org]
> Sent: Thursday, March 27, 2003 1:45 AM
> To: php-general@lists.php.net
> Subject: RE: [PHP] Uploading Files Via PHP
>
>
> did u even read it ? chmod 777 + owned by httpd
>
> -----Original Message-----
> From: Jason Wong [mailto:php-general@gremlins.biz]
> Sent: Thursday, March 27, 2003 9:40 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Uploading Files Via PHP
>
>
> On Thursday 27 March 2003 18:25, Marek Kilimajer wrote:
> > not necesserily both, either of them is enought:
>
> Not quite true :)
>
> If owned by 'httpd' then 'httpd' still needs write permission (o+w).
>
> > drwxrwxrwt 2 root root 188416 Mar 27 11:23 /tmp
> > or
> > drwx------ 2 apache apache 188416 Mar 27 11:23
> > /var/www/uploads
> >
> > daniel wrote:
> > >possibly a permissions problem , dir needs to be 777 and owned by httpd
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> In good speaking, should not the mind of the speaker know the truth of
> the matter about which he is to speak?
> -- Plato
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>