"default_upload_permission" in config not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
davidhans
New Member
New Member
Posts: 8
Joined: Wed Sep 12, 2012 11:59 am

"default_upload_permission" in config not working

Post by davidhans »

Hi. First-time poster so apologies if I've posted this in the wrong place.

Although my "default_upload_permission" is set to 644 in config.php, but when I upload a file via image manager or Tiny MCE the file permissions are defaulting to 664.

The _thumb.jpgs that are created simultaneously have the correct perms (644).

I recently upgraded to 1.11.1, and upgraded all my modules at the same time. My File Creation Mask is set to 022. I don't think I had a problem prior to upgrade

Any help would be appreciated. Do I need to post anymore info?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: "default_upload_permission" in config not working

Post by Dr.CSS »

Try setting unmask to 002...
davidhans
New Member
New Member
Posts: 8
Joined: Wed Sep 12, 2012 11:59 am

Re: "default_upload_permission" in config not working

Post by davidhans »

Hi Dr CSS. Thanks for getting back to me. I tried setting the umask to 002 and then I used the image manager to create a folder and upload a file.

The new folder file permission is set to 775 (I want 755)
The file permission on both the image and its _thumb is 664 (I want 644).

Any other ideas?
davidhans
New Member
New Member
Posts: 8
Joined: Wed Sep 12, 2012 11:59 am

Re: "default_upload_permission" in config not working

Post by davidhans »

I notice Filemanager is behaving as I think it should (ie setting the permissions of newly uploaded files according to the
$config['default_upload_permission'] = '644'; in config.php), whereas imagemanager and tinyMCE create permissions of 664. Are the default perms for imagemanager and tiny set somewhere other than config.php?
After a previous hack, I've been warned by my server admin that file permissions should never be anything less than 644. I keep changing them, but every time my clients upload anything it has the "illegal" 664.
Post Reply

Return to “CMSMS Core”