I'm trying to set a shared directory in my server. There is 2 developper and they will work on the same directory.
I created a directory, change the group owner to www-data and chmod it to 755 :
drwxrwsr-x 3 root www-data 4096 2012-08-24 12:06 SharedDir/
But when i log in my directory with one dev login and try to touch a files it create a file with 644 perms
-rw-r--r-- 1 user1 www-data 0 2012-08-24 12:11 test
How can i create a mask to set the perms to 755 by default ?