Permissions of directories and config file - security issue

Just to make sure:
Please tell me what kind of permissions (octal code) should be set for file and cache and public directories of OJS?
Thank you very much

This will vary depending on whether you are on a shared server, or a dedicated machine, and whether you have one or multiple people interacting with OJS on the file level. I tried to explain some of those considerations here: