User1 is a member of Group1, Group2 and Group3, each group has a directory (say /home/group1, /home/group2, ...)
How do I make it so that when User1 cds to /home/group1, their primary group becomes group1, when they cd to group2 they become group2, etc?
Essentially, I'm only looking to do this so that when User1 makes a new file in each respective directory, it can be set group writable for the appropriate group.
I will be doing this on Solaris 10 (Although I am testing on Ubuntu 8.10...)
Thanks!