report/security/report security check preventexecpath: Difference between revisions
Dan Marsden (talk | contribs) (add some info about preventexecpath) |
Dan Marsden (talk | contribs) m (formatting) |
||
Line 2: | Line 2: | ||
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: | 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> | |||
$CFG->preventexecpath = true; | $CFG->preventexecpath = true; | ||
</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: | ||
$CFG->pathtodu | <code php> | ||
$CFG->pathtounoconv | $CFG->pathtodu = 'PATH'; | ||
$CFG->aspellpath | $CFG->pathtounoconv = 'PATH'; | ||
$CFG->aspellpath = 'PATH'; | |||
</code> |
Revision as of 06:53, 11 September 2017
Moodle administrators are able to define the path to a number of executable files hosted 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:
$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';