53
rated 0 times
[
53]
[
0]
/ answers: 1 / hits: 97701
/ 3 Years ago, sun, june 20, 2021, 5:47:39
My LAMP is setup to work as user:www-data
and all files and folders are created with that permissions.
I have setup for crontab as user@ubuntu.
So i do crontab -e
and use this command:
*/5 * * * * php /var/www/public/voto_m/artisan top >/dev/null 2>&1
Basically that command just creates cache file in specified place (no problems with that), but that cache file is created with user:user permissions not user:www-data
permissions.
How can i make that it will by default create file with user:www-data
permissions?
I can't go and chown
each time file is recreated.
Thanks.
More From » cron