I work in a shared web development environment. My team frequently creates new files and folders on the server, but they always need to change group permissions afterward.
For default permissions on new files, I set umask 002 in the bashrc. BUT for default permissions on new directories:
$ sudo chmod g+s /var/www
New directories within /var/www now display as:
drwxrwsr-x 2 user www-data 4096 2010-10-14 08:49 test
Now, this setup works correctly, i.e. new files and directories are group-writable by default. Are there any security issues to using sgid in this setup? Being extra cautious because I don't fully understand setuid risks.