upload permissions using phpsuexec

destr0yr

Well-Known Member
May 4, 2004
58
0
156
Kelowna, BC.
I searched, I couldn't find a definitive solution.

Uploads using PHPsuExec work great, but the permissions are set to 0640 (or was it 0600...). I know I can add chmod to my scripts, however, I'd like some type of umask to set the file perms to 0644 or something to this effect. Is there a way to do this globally?
 
Last edited:

fatepower

Registered
Nov 3, 2007
3
0
51
same for me mate. When i upload a image file with a php image upload script. The file permission in the photo folder get setted to chmod 600 but the files should get chmod 644 as when u upload with ftp. This cuase the error that the public users can't view the files cuz teh permissions is setted to chmod 600 :(