[NTLUG:Discuss] default uploaded file's permission problem
Patrick R. Michaud
pmichaud at pobox.com
Thu Mar 3 23:52:26 CST 2005
On Fri, Mar 04, 2005 at 04:23:40AM +0000, m m wrote:
>
> I upload the file with ftp, and get new created file permission 755.
> but if I use oscommerce /admin/categories.php to upload image, it always
> set 600 (-wr-------) only.
>
> I have try to set umask 022 or umask 000 on the /etc/profile and it does
> not work.
Setting umask in /etc/profile won't help with a php-upload script
via a webserver, because there's nothing to "log in" that would
process /etc/profile.
It's likely that the only thing that will be able to affect the
permissions of the uploaded file will be the categories.php script
itself. If categories.php is is simply moving the uploaded file
from the sandbox into the filesystem (and not doing anything else
to change the file permissions in the process), then the file is
likely to end up with 600 permissions.
In short, oscommerce will be the likely place to look for the answer to
this question.
Pm
More information about the Discuss
mailing list