Page 1 of 1

Image permissions problem

Posted: Mon Sep 24, 2007 2:34 pm
by reidjazz
I just, for about the 3rd time this morning, did a new CMSMS 1.1.3.1  install (new database as well) to an Apache 2.0 server running PHP 4.4.7 and mysql 4. The problem is that any images I upload to the uploads/images folder have a permission of 600 (instead of 644), making them not accessible by the browser (I get a 404 error). The permissions on the Uploads folder AND the Images folder inside of it are 777. If I change the permissions on the images on the server to 644, all is good. But I shouldn't have to do that (and my client won't have the ability or knowledge to do that).

After doing some more testing, it appears that the File Manager module (not the one as a part of the default install, but the one found in the Module Manager), which allows multiple file uploads is doing this. When I upload a file with the File Manager that is part of the default install, it's permissions are 644; when I use the other File Manager, they are set to 600. Funny, I've been using this module for months with no problem.

Any ideas on fixing this? I rooted around in some of the .php files in the File Manager's folder, but didn't see anything that looked like it set permissions on the files being uploaded.

reidjazz

Re: Image permissions problem

Posted: Wed Nov 14, 2007 10:22 am
by saltydog
I am experiencing exactly the same problem with v.1.2
FileManager uploads files with 600 permission, which is causing me problems in getting a backup.

Re: Image permissions problem

Posted: Wed Nov 14, 2007 1:58 pm
by dmgd
Same problem with upgrade to 1.2  Does not matter what mask is set in config.php or the Global settings.  Changing the settings in Global Settings makes no change to the permissions.  It is always 600.  A new install of version 1.2 also has this problem.

CMSMS 1.2
PHP 5.x
mySql 5.x
Apache 1.3

Mark

Re: Image permissions problem

Posted: Wed Nov 14, 2007 2:36 pm
by cyberman

Re: Image permissions problem

Posted: Wed Nov 14, 2007 3:07 pm
by scotch33
Hi - just tried the solution at http://forum.cmsmadesimple.org/index.ph ... 482.0.html and it didn't play nice. 

Lets all try and post there so that the 3 + threads on this all become 1!