Correct permissions

Hi, I am hosting invoiceninja on my server. I have been testing it and i really like it. I think i have messed up permissions. So I have set the owner for files to root:root except storage, bootstrap, public/logo which are owned by www-data. When i run cronjobs from the normal user (not root or www-data), it gives me a few errors. What are the suggested permissions? I chowned them to root because of extra security. Is this good practice? Thank you!

Also is it good practice to run cronjobs as root because it doesn’t give me errors.

I have another question. Can i make recurring expenses?

Everything should be owned by www-data.

We don’t yet support recurring expenses, hopefully in the future.

Thanks. What about the user who runs cronjobs?

You can run them as www-data

http://askubuntu.com/questions/189189/how-to-run-crontab-as-userwww-data