All users of a group can edit each others files (Linux)

Posted by Xeoncross on Server Fault See other posts from Server Fault or by Xeoncross
Published on 2010-03-21T18:05:00Z Indexed on 2010/03/21 18:11 UTC
Read the original article Hit count: 323

Filed under:
|
|

I want anyone in group www-data to have write access to /var/www. For example, if 'a' and 'b' are in group www-data and 'a' creates a file in /var/www - then 'b' will be able to edit it.

The problem is that I create files that PHP and Apache can't edit - and they create files I can't edit without sudo.

I changed the umask setting /etc/profile from umask 022 to umask 002. Is this a safe and proper way to handle this?

© Server Fault or respective owner

Related posts about umask

Related posts about php