I am running an install of CakePHP on Ubuntu 12.04 LTS.
The way certain files are accessed I need permissions set a certain way within my install of Ubuntu. Nothing out of the ordinary.
The problem is that the ownership and group of certain files keeps reverting back to
root after I manually change them to
www-data for the owner and group.
For example, I have the following file:
-rw-rw-r-- 1 www-data www-data 155 May 10 09:26 myapp_cake_model_default_cake_apps_1_list
After a while, it will change to:
-rw-rw-r-- 1 root root 155 May 10 10:13 myapp_cake_model_default_cake_apps_1_list
This is happening in a couple of locations.
I'm not sure if this is happening because of a cron or Ubuntu doesn't like the permissions or because I'm a moron and idiot. But It's driving me crazy.