Each pupil belongs to one or more groups, e.g. yr-2015, yr-2016 (year of entry into college), sub-prog, sub-math, sub-logic (subjects).
It is also possible for a teacher to belong to these groups.
Is it possible to have a group leader: such that the teacher is the group leader, specifically:
- How can a pupil set a file to be readable by self and sub-math-teacher?
- How can it be configured so that a sub-prog-teacher can add users to her group?
- How can a group leader create another group leader? (e.g. head-teacher, can add new teachers)
I will not be giving root permission to pupils or teachers. I am using Debian GNU/Linux, but would be interested most for more general solutions (for All GNUs and the other Unixes). Even solution for other systems that are not available on GNU, so long as they use the underlying mechanisms that are available on GNU/Linux.