Hello all.
I am trying to understand sharing on a pi. Here is what I have.
Three users, 1, 2, 3. They each have a folder. I also have a public folder.
Samba is installed and working. Here is the problem.
The public share works, users 1,2, and 3 can see it, read and write to it over the network. Good...
Users 1 to 3, after they have entered the server address then get asked for their credentials after which they get logged in. Good
However on a MAC, for example, when user 1 logs in they are then presented with a list of "volumes" to select. The volumes are the other uses and the public folder.
If user 1 selects user 2's folder it opens meaning user 1 can now see all of user 2's stuff and user 3! Bad
In fact, any of the users can log in, with the right credentials, but once on they can see and modify all the other users folders and content! Bad
Whew!!!! What have I done wrong here?
It's a permissions thing I know but I'm trying to get it so users 1 to 3 can log in anywhere on the LAN and see ONLY their own folders (R/W) and of course the public folder...
[user1]
comment= user1 folder
path=/home/user1
browseable=yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
[user2]
comment= user2 folder
path=/home/user2
browseable=yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
[user3]
comment= user3 folder
path=/home/user3
browseable=yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
[public]
Comment = Public shared folder
Path = /share
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
Help! I'm almost there. I think.
Here is the section of my samba.conf file showing the users etc.
Best wishes
Dj
Â
Â
Â