The easiest way would be to create a Linux user account for your 3 users and just have them to sign in to one big shared folder. To do so you will first have to install the gnome system tools with the following command
sudo apt-get install gnome-system-tools
After you did this go to your
user accounts and click the lock button and add your accounts.
Now open the gnome tool we just installed, it’s called users and groups.
Click on an account, select
advanced and enter your pass. Go straight to the
advanced tab and change
/bin/false. Also it’s recommended to generate a random password for the samba accounts so you can’t sign in to them on the Linux machine.
You can also change the user ID to a number lower as
1000 This way it will hide the account on your Linux machine. I recommend you to do this after you are sure everything is working 100%
Now do the same for the other account.
After that you make 3 samba accounts and link them to the Linux user accounts. Like shown in the following image:
Now it’s just a matter of changing permissions on the folders. I will use the student and school folder as an example.
Open an terminal and enter the following command
enter your password and click okay. Now browse to your shared folder and go to the folder school, right click on it and go to properties, select permissions.
Now you can set properties for users and groups to allow them to enter folders. In this example we want the owner to have full control and the student to only access the files and others get no access. So you would get this:
Now it is just a matter of repeating the previous steps to give the other accounts the wanted access and permissions.
I hope this answered your question.