How to set shared folder only visible to valid users?
It's SAMBA.
I have three groups of users which are g1,g2 and g3
g1 can only access folder group1
g2 can only access folder group2
but g3 can access every folder in the samba share
What I want is...
if I log in as an user in g1, I can only see folder group1.
if I log in as an user in g2, I can only see folder group2.
but if I log in as user in g3, I can see every folder.
The question is, is it possible to do this? I've tried to figure out for 2 days but no clue :(
my code looks sth like this
[group1]
public = no
writable = yes
guest ok = no
valid users = +g1 +g3
[group2]
public = no
writable = yes
guest ok = no
valid users = +g2 +g3
[group3]
public = no
writable = yes
guest ok = no
valid users = +g3
I have tried "hide unreadable = yes" but it doesn't work and and turn "browseable" off. It still doesn't what im looking for.
any suggestions?
Thank you