Following on from this thread , I found this handy script in the downloads, which automates some of the chmod stuff.
However, I'd like to suggest an alternative version for those hosts (and there are many) who do not allow 777. Also, configure files should be 400, not 644. Also, this might be useful for hosts who don't allow chmod 400 to be done via ftp (all, IMHO)
Anyway, here's what I use for setup - dump it in the zen root, call it what you want (something cryptic), and run with a sh call:And then use this to lockdown when you're done:Code:#!/bin/sh chmod -R 755 ./ find ./ -type f -exec chmod 644 {} \; chmod 644 ./includes/configure.php chmod 644 ./admin/includes/configure.phpIF and ONLY IF (and this is not recommended) your host requires 777 for your process to write, then use these instead:SetupCode:#!/bin/sh chmod -R 755 ./ find ./ -type f -exec chmod 644 {} \; chmod 400 ./includes/configure.php chmod 400 ./admin/includes/configure.php
LockdownCode:#!/bin/sh chmod -R 755 ./ find ./ -type f -exec chmod 644 {} \; chmod 777 ./includes/configure.php chmod 777 ./admin/includes/configure.php chmod -R 777 ./cache chmod -R 777 ./temp chmod -R 777 ./pub chmod -R 777 ./images chmod -R 777 ./includes/languages/english/html_includes chmod -R 777 ./admin/backups chmod -R 777 ./admin/images/graphsCode:#!/bin/sh chmod -R 755 ./ find ./ -type f -exec chmod 644 {} \; chmod -R 777 ./cache chmod -R 777 ./temp chmod -R 777 ./pub chmod -R 777 ./images chmod -R 777 ./includes/languages/english/html_includes chmod -R 777 ./admin/backups chmod -R 777 ./admin/images/graphs chmod 400 ./includes/configure.php chmod 400 ./admin/includes/configure.php






Bookmarks