linux - CakePHP: Why does file owner and group keep changing to root? -


i running install of cakephp on ubuntu 12.04 lts.

the way files accessed need permissions set way within install of ubuntu. nothing out of ordinary.

the problem ownership , group of files keeps reverting root after manually change them www-data owner , group.

for example, have following file:

-rw-rw-r-- 1 www-data www-data 155 may 10 09:26 myapp_cake_model_default_cake_apps_1_list 

after while, change

-rw-rw-r-- 1 root root 155 may 10 10:13 myapp_cake_model_default_cake_apps_1_list 

this happening in couple of locations. /var/app/tmp/cache , /var/app/tmp/cache/models/.

i'm not sure if happening because of cron or ubuntu doesn't permissions or because i'm moron , idiot. it's driving me crazy.

thanks!

the owner of temp files depends on user running script. if there files being created "root" owner cause cronjob (or manually) running cakephp shell sudo permissions.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -