----- Original Message -----
From: "Andy" <[EMAIL PROTECTED]>
Subject: [PHP] which rights to set for dirs containing uploaded files?

> I am wondering which right I should set for a directory where users can
> upload pictures. What would be a secure way? Currenly I did set the rights
> to 777 which allows everything. This seams verry insecure to me. But
> otherwise php can't store the file.

You can also set the owner of the directory to nobody:nobody and give write
auth to user and group but not other. That probably wouldn't make any
security difference on a dedicated server, but would on a shared box.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to