Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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. /var/app/tmp/cache and /var/app/tmp/cache/models/.

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.

Thanks!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.