How do I set default group ownership for files in a directory?

Posted by tnichols on Super User See other posts from Super User or by tnichols
Published on 2012-06-15T05:04:41Z Indexed on 2012/06/16 21:18 UTC
Read the original article Hit count: 173

Filed under:
|
|

I am running a cakephp webapp on Linode LAMP. I am finding that my temp files are created with root:root ownership. But the webapp is running with Apache's permissions (www-data). This causes warnings any time there is a new file created because it is not writable for user www-data.

How do I change the default ownership to www-data on any new files created in the temp folder?

Thanks for your help!

© Super User or respective owner

Related posts about linux

Related posts about permissions