# Question about cron jobs

**URL:** <https://forum.mautic.org/t/question-about-cron-jobs/3663>\
**Category:** Product Support\
**Created:** [May 6, 2016, 6:44am UTC](https://forum.mautic.org/t/question-about-cron-jobs/3663 "2016-05-06T06:44:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arjon](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@arjon](https://forum.mautic.org/u/arjon)\
**Post date:** [May 6, 2016, 6:44am UTC](https://forum.mautic.org/t/question-about-cron-jobs/3663/1 "2016-05-06T06:44:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![arjon](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@arjon](https://forum.mautic.org/u/arjon)\
**Post date:** [May 6, 2016, 6:44am UTC](https://forum.mautic.org/t/question-about-cron-jobs/3663/2 "2016-05-06T06:44:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![arjon](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@arjon](https://forum.mautic.org/u/arjon)\
**Post date:** [May 6, 2016, 8:34am UTC](https://forum.mautic.org/t/question-about-cron-jobs/3663/3 "2016-05-06T08:34:27Z")

</div>

> [@10042:@MxyzptlkFishStix](#):
>
> Shared hosting?

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 ?

---

<div class="post-metadata">

**Author:** ![arjon](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@arjon](https://forum.mautic.org/u/arjon)\
**Post date:** [May 7, 2016, 1:01pm UTC](https://forum.mautic.org/t/question-about-cron-jobs/3663/4 "2016-05-07T13:01:19Z")

</div>

> [@10049:@MxyzptlkFishStix](#):
>
> Yes, if Apache runs as that user.

Thanks!
