Thanks - but that does not work, because symfony creates the log file as writable only for the owner, not the group. Are there any other solutions?
Thanks, Andreas Roel Vanhout schrieb: > Use the setgid bit (chmod +S) on the log directory and put the batch > user in the group that you set on that log directory. > > > cheers, > > roel > > > Andreas Hucks wrote: >> Hi all, >> >> the server I run my app on will run cronjobs (= symfony batch files) as >> a different user than the webserver. This is a fixed setting and I am >> not able to change users for cronjobs. >> >> Because of this, my batch files are not able to write to >> frontend_prod.log. While I can fix this temporarily by adjusting the >> permissions of the log file, everytime a new log file is created, >> symfony creates it with write permission for the owner only, creating >> the problem again. >> >> I need to use the frontend app and prod environment for the batch, so >> the file must be writable for the batch, I can't just use a different >> one. The directory permissions are not the problem. >> >> What can I do to solve this? Is there a way to have symfony create new >> log files as 777 by default? >> >> Cheers, >> Andreas >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---