Most CMSes that allow you to upload to the site, manage the filesystem, etc, also give you the ability to set default CHMOD permissions for security. For some reason, I can’t seem to find any similar setting in ModX
The reason I’m posting about this, is because in my server environment, we are running PHP under SuExec (suphp), so that PHP is running as *my* web user for my specific account. This means files need to be no more than 644, and folders need to be no more than 755, otherwise errors are tossed out. I need the filemanager to be able to create files with the default permission level allowed by the filesystem.
Anyone know currently where the CHMOD command is occurring within the php code?
nevermind, i found the files:
modx-0.9.2.1\manager\actions\dynamic\files.dynamic.action.php
modx-0.9.2.1\manager\media\browser\mcpuk\connectors\php\Auth\Default.php
modx-0.9.2.1\manager\media\browser\mcpuk\connectors\php\Commands\FileUpload.php
modx-0.9.2.1\manager\media\browser\mcpuk\connectors\php\Commands\Thumbnail.php
modx-0.9.2.1\manager\media\ImageEditor\Classes\Files.php
Any mkdir operations, I changed the permission value to 755, and I commented out all chmod() functions.