Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: report/security/report security check preventexecpath.

report/security/report security check preventexecpath: Difference between revisions

From MoodleDocs
m (formatting)
m (Small layout tweak.)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Moodle administrators are able to define the path to a number of executable files hosted
{{Security overview report}}Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent administrators from changing these paths by adding the following setting to your config.php file:
Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent adminstrators from changing these paths by adding the following setting to your config.php file:


<code php>
<code php>
$CFG->preventexecpath = true;
$CFG->preventexecpath = true;
</code>
</code>
You should also explicitly set the relevant paths in your config.php file such as:
You should also explicitly set the relevant paths in your config.php file such as:
<code php>
<code php>
$CFG->pathtodu = 'PATH';
$CFG->pathtodu = 'PATH';
$CFG->pathtounoconv = 'PATH';  
$CFG->pathtounoconv = 'PATH';
$CFG->aspellpath = 'PATH';
$CFG->aspellpath = 'PATH';
</code>
</code>
[[es:report/security/report security check preventexecpath]]

Latest revision as of 03:09, 25 August 2021

Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent administrators from changing these paths by adding the following setting to your config.php file:

$CFG->preventexecpath = true;

You should also explicitly set the relevant paths in your config.php file such as: $CFG->pathtodu = 'PATH'; $CFG->pathtounoconv = 'PATH'; $CFG->aspellpath = 'PATH';