Intraweb
23rd January 2008, 16:46
I have the following problem:
I have 3 webadmins (non-root) on a Debian-System with Apache2 and PHP5.
So I've created the group "web" with these 3 users in it.
I changed the group of /var/www to "web" and set the "setgid" bit, so that all new files and directories have the "web"-group.
So far so good.
The problem now is, that every new file has the right group, but the wrong permissions. The group members are only allowed to read, but not to write.
Is there another way than change the umask of every user (and apache!), i.e. set the umask just for that specific directory? ex. setfacl?
I hope I am not barking on the wrong tree here.
If there is better way than umask fell free to write.
Thanks in Advance
Intra
I have 3 webadmins (non-root) on a Debian-System with Apache2 and PHP5.
So I've created the group "web" with these 3 users in it.
I changed the group of /var/www to "web" and set the "setgid" bit, so that all new files and directories have the "web"-group.
So far so good.
The problem now is, that every new file has the right group, but the wrong permissions. The group members are only allowed to read, but not to write.
Is there another way than change the umask of every user (and apache!), i.e. set the umask just for that specific directory? ex. setfacl?
I hope I am not barking on the wrong tree here.
If there is better way than umask fell free to write.
Thanks in Advance
Intra