Security question
| From: | James Corbett | Date: | Wed, 26 Jul 2000 10:09:55 +0000 |
| Subject: | Security question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8245@lists.php.net to get a copy of this message | ||
I am creating a directory on my webserver (Linux/Apache) to hold images that
are uploaded by the administrators of the site but I am concerned about the
permissions to place on the directory.
Obviously PHP (runs as user nobody) has to have write privileges for the
directory, so I can either create a world writable directory and use
.htaccess to deny PUT access or create a directory owned by the nobody user
and only allow the owner write privileges.
Can anyone tell me which of these options is the most secure, or suggest an
alternative method?
Thanks in advance,
James.