Hi
I have installed OJS successfully and (2.4.8 and 3.1) versions successfully and during setup I gave full permission to couple of files (the ones mentioned in the read-me file) so shall I revoke these full-permissions after the installation is done? What measures should be taken to better secure the site after the installation is done?
Also I checked the “secure your OJS installation” on this page
and it says the following about “restricting the file permission”
4- Restrict File Permissions: Getting OJS file permissions right is one of the most important factors in maintaining the security of OJS installation. We use restrict file permissions for better security while maintaining OJS functionality.
But it doesn’t say what files should be restricted and how, any ideas, tips on that and how to implement it?
That site contains misleading information about OJS security. See PKP Position on Online Harassment for a statement about that company.
It’s difficult to give specific instructions for file permissions, as servers will have a number of different configurations. Essentially 777 permissions (on UNIX-like platforms) are never safe to use. There is a more comprehensive description of OJS’s requirements for file permissions in the FAQ area of this forum: How should file permissions be set?
The most important considerations for security are described in docs/README under “Recommended Configuration”. Note in particular the need for your files directory to be kept outside the web root, or protected – this is mentioned on the installation form, in the README, and elsewhere, but does get overlooked.
Regards,
Alec Smecher
Public Knowledge Project Team
Found it. Thx a ton
I have Plesk on the server and by default it is preventing access to any folder which doens’t have an index page. I think that will do the trick.
Perhaps – but that isn’t a common setup, I don’t think. Just to be sure, if your files_dir is still inside your web root somewhere, I’d suggest trying out a full URL to a file inside your files_dir in your browser to see if you can download it directly that way. If so, your system isn’t safe and you’ll need to prevent access to the contents of that directory, either by moving outside the web root or by using a mechanism like an .htaccess file.
Regards,
Alec Smecher
Public Knowledge Project Team