If a user, user1 belongs to group1 and also a setuid executable exists that is owned by user1 and group, group2. user1 is not a member of group2.
I am seeing that the executable cannot access files owned by root and group1 (others have no access, (550, root, group1)). Why is this the case? How is the group of a setuid user determined?