Cron job and folders permissions - permission denied

前端 未结 4 705
无人共我
无人共我 2020-12-19 16:10

I have a folder above the webroot that is used to temporarily store user files generated by a php web application. The files may, for example, be PDF\'s that are going to be

4条回答
  •  囚心锁ツ
    2020-12-19 16:56

    Permission are given to user-group-everybody. That's what the 3 characters denote.

    Your php script runs as a different user&group than the cron job, so they observe different permissions.

    Check chown and chgrp, or try to run the cron job with the same user.

提交回复
热议问题