Question about cron jobs

Hello, I know i have to submit my cron jobs but there is a little problem. My files are all chowned to www-data:www-data and if my cron jobs run, they will have a permission problem. How should i run the cron jobs? If the files belong to apache, i can not execute them. At least they are giving me permission errors. I haven’t changed any permission. They have the defaults. Can someone help? Thank you.

Hello, I know i have to submit my cron jobs but there is a little problem. My files are all chowned to www-data:www-data and if my cron jobs run, they will have a permission problem. How should i run the cron jobs? If the files belong to apache, i can not execute them. At least they are giving me permission errors. I haven’t changed any permission. They have the defaults. Can someone help? Thank you.

No, i am using a VPS. The user (arjon) can not modify/execute files owned by apache. Is it a solution to use sudo crontab -u www-data -e ?

Thanks!