How can i achieve the following behaviour; If user1, which is in group2 creates directories or files, the group should have write permissions by default on this files/directories. I already tried putting umask 002 in /home/user1/.profile and .bashrc but this gave me the following:
drwxr-xr-x 2 user1 group2 4096 Aug 3 11:17 test1
So how can i achieve this? The change should be persistent, even after reboot etc.
You should be able to do it with ACL.