RE: [PHP] Does this seem odd? File Upload Permissions
| From: | Demitrious S. Kelly | Date: | Wed, 27 Mar 2002 07:08:14 +0000 |
| Subject: | RE: [PHP] Does this seem odd? File Upload Permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90325@lists.php.net to get a copy of this message | ||
The default file permission for new files on the *nix system may be set
to something like 755... that could be the problem...
-----Original Message-----
From: David McInnis [mailto:david@dataovation.com]
Sent: Tuesday, March 26, 2002 11:03 PM
To: php-general@lists.php.net
Subject: [PHP] Does this seem odd? File Upload Permissions
Why does PHP set the execute bit on an uploaded file? This means a user
could upload a script and it would be executable. Ouch! Especially if
the file is available via httpd after upload. . . HELP.
I am saving to a directory with permissions of 766
And when php copies the file it assigns the following permissions.
rwxr-xr-x
I am using the copy command to move the file from the tmp directory.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php