Posts: 1
Joined: Mon Oct 09, 2017 1:47 pm

PiNet - Multiple Groups for Classes?

Mon Oct 09, 2017 1:55 pm


I am just getting started with setting up a PiNet for my school network.
Since PiNet's users are (correct me if I'm wrong) essentially UNIX/Linux users assigned to the pupils/teachers UNIX/Linux groups by default, would it also be possible to create more groups for individual classes of students? Or are we limited to just password protect multiple shared folders that are being used for each class? Or - this is probably the most likely thing - am I just missing something here?

Thanks for any help!

Posts: 154
Joined: Mon Jan 21, 2013 2:43 pm

Re: PiNet - Multiple Groups for Classes?

Wed Oct 11, 2017 1:36 pm

So looking at it, yeah it probably is doable to limit access via groups.
The section of code in PiNet in relation to this is here - https://github.com/PiNet/PiNet/blob/jes ... inet#L1146.

The bindfs mount file needs edited -

Code: Select all

nano /usr/local/bin/bindfs-mount
And replace the

Code: Select all

section with

Code: Select all

. That will still allow read access to everyone, but only write access to that group.
To make it only accessible to a specific group, key is to change the perms=0775 to perms=0770.

It is something I am looking into in relation to moving away from Linux users in the future, moving over to LDAP. At that point, the groups system becomes a bit easier. But that will be a while away.
Lead developer of PiNet, a free and opensource centralised user accounts and file storage system for Raspberry Pi classrooms used in over 200 schools across the world.

Return to “Staffroom, classroom and projects”