So I have 4 users on my redhat system.
*P- primary group
S- supplementary/secondary group*
UserA - P: Teacher S: USA
UserB - P: Teacher S: School
UserX - P: Student S: School
UserY - p: Student S: School, USA
How do I allow everyone in School/USA secondary groups to have read access to all users' home directories in the group? e.g. UserX should be able to read User B & Y's home directories because they are in the group School. But UserX cannot read UserA's home because UserX is not in USA.
UserY can read everyone's home.