Securing moodle installation

Securing moodle installation

by Vittore Zen -
Number of replies: 1
Hi,

I'm trying to setup a script to securing moodle installation.
What's about this?

cd /the_root_of_moodle/
chown apache:webgroup -R .
chmod -R 704 .
chown apache:webgroup -R ../moodledata
chmod -R 0705 ../moodledata
chmod 604 config.php

thanks in advance
v.

Average of ratings: -
In reply to Vittore Zen

Re: Securing moodle installation

by Vittore Zen -
cd /the_root_of_moodle/
chown apache:webgroup -R .
chmod -R 704 .
chmod -R 02777  `awk '/CFG->dataroot  = / { print substr($3,2,index($3,";")-3) }
' config.php`
chmod 604 config.php