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.
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
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