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

PiNet - Multiple Groups for Classes?

Mon Oct 09, 2017 1:55 pm

Hello,

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!

Gbaman
Posts: 122
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

perms=0775,force-group=pupil
section with

Code: Select all

perms=0775,force-group=your_group
. 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.
http://pinet.org.uk

Return to “Using Raspberry Pi in the classroom”

Who is online

Users browsing this forum: No registered users and 2 guests