Wednesday, May 30, 2012

Re: app/tmp permissions

On Sun, May 27, 2012 at 5:52 AM, Steve Found <stephen@foundfamily.co.uk> wrote:
>
> A better method is to change group ownership of tmp and everthing below it
> to www-data ( or whatever group your apache server runs in ) with 'chgrp -R
> www-data tmp' followed by 'chmod -R 774 tmp' This makes tmp read/write for
> you and the www-data group but readonly for everyone else

I do the same but also setgid on the directory to make it simpler for
me to remove files subsequently created if I'm accessing the server
through FTP instead of a shell.

chown -R www-data tmp
chgrp -R your_login_group tmp
chmod -R 774 tmp
chmod -R g+s tmp

Then all new files created by Cake will inherit the group permissions.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: