CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • templates_c/en_US permissions change after cron job run
Pages: [1]

Author Topic: templates_c/en_US permissions change after cron job run  (Read 553 times)

charlie

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.5.8 (testing 4.6.2)
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.27
  • PHP version: 5.3.28
templates_c/en_US permissions change after cron job run
May 13, 2014, 05:22:52 pm
I just upgraded from CiviCRM 4.2.6 to 4.4.5, running on OSX 10.6. Just before running the "upgrade" process I deleted the templates_c tree, assuming it would be recreated properly. Now I'm getting various Smarty permission warnings, which seem to be related to cron jobs (not cron.php). Notably this is after running process_mailing, but perhaps also with other CiviCRM cron-related tasks (I have not investigated this fully yet).

Initially the templates_c tree had owner set to _www:_www (the user:group under which the web server runs) and permissions 0777.

When running process_mailing, directories in templates_c/en_US get created with owner set to charlie:_www and permissions 0751. This happens when process_mailing actually sends a message, but not when there are no messages to send. This owner/permission setting causes Smarty warnings. The warnings/errors go away when I reset the owner/permissions back to their original values.  I've tried experimenting with setting the sticky bits and ACLs, but no luck yet.

This was not a problem before the upgrade and my deleting the templates_c tree. The cron-executed scripts have not changed.

I'm embarrassed not to have been able to figure this out myself.

charlie

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.5.8 (testing 4.6.2)
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.27
  • PHP version: 5.3.28
Re: templates_c/en_US permissions change after cron job run
May 13, 2014, 07:34:35 pm
As a workaround I set up the cron job(s) to run under the web server user (_www) privileges. The process_mailing task runs normally and the templates_c/en_US tree ownership and permissions are not affected.

I'm still curious about why everything worked fine under CiviCRM 4.2.6.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • templates_c/en_US permissions change after cron job run

This forum was archived on 2017-11-26.