What permissions for all files and directories?
(posting this anonymously to protect my site)
:oops: Don't ask me how I did it, but I accidentally set the permission of every Zencart file and directory to 777. I think Fantastico is to blame, because it 'Prepared Zencart for removal' when I didn't want it to.
Anyway, to fix it I recursively chmod'd all files and directories to 755, with the exception of configure.php which is now 444.
Is this secure? or should I set some folders / files to something else?
Re: What permissions for all files and directories?
If you were to change all directories/subdirectories to 755 and all files to 644 ... then you could go back and make the few changes that you might need for your image directories to 777 and files to 755 and the other directories that might need adjusting such as the cache directory and the like ...
Re: What permissions for all files and directories?
Thanks for such a quick reply Linda, I'll take your advice... just wondering how I recursively chmod just the files and not directories...
Re: What permissions for all files and directories?
actually here's the commands:
chmod -R 644 * (to set everything to 644)
then
find . -type d -print0 | xargs -0 chmod 755 (sets directories to 755)
then set images / cache / configure.php like you said.
Thanks again, I can stop worrying now.