title: cakephp shell command changing tmp permissions
body: <p>I'm running a CentOS server with CakePHP 2. I run a shell command every night via the console as a Cronjob.</p>
  
  <p>I'm far from an expert on Linux but it seems that when the cron job runs, a different user assumes ownership of the files in the tmp directory (I'm running the crob job as root).</p>
  
  <p>The following morning when I log onto my site via the web I get a dozen or so errors about file permissions in the tmp directory. I can chmod this files and the errors will all go away.... until the cron job runs again.</p>
  
  <p>I checked around the web a bit and found one post suggesting that I add this to my core.php:</p>
  
  <pre><code>Cache::config('default', array(
  'engine' =&gt; 'File',
  'mask' =&gt; 0666,
   ));
  </code></pre>
  
  <p>I didn't have any effect. 
  I would really appreciate some advice on how to get the owner of these tmp files to stop changing or how to make cakephp not throw up an error about it.</p>
  
  <p>Thanks a lot</p>