[Samba] Hide the files that doesn't have permission to access
Harry Jede
walk2sun at arcor.de
Wed Oct 14 15:28:05 UTC 2015
On 17:24:22 wrote Nguyen Xuan. Hai:
> Hi all,
>
> I want to shows a user only the files that he/she has permission to
> access. I configured smb.conf like that:
>
> [global]
> workgroup = STORAGE
> encrypt passwords = yes
> security = user
> access based share enum = yes
> hide unreadable = yes
> hide unwriteable files = yes
>
> [smb_shr1]
> path = /mnt/LV002/share1
> read only = no
> create mode = 0777
> directory mode = 0777
> public = yes
> valid users = hai
> [smb_shr2]
> path = /mnt/LV002/share2
> writable = yes
> create mode = 0777
> directory mode = 0777
> public = yes
> valid users = test
>
> It is no effect. From windows 8 client, I accessed to samba server
> and logged in by user "hai" but I still see two share folders
> (smb_shr1, smb_shr2).
Sure, that is what you force with your settings in smb.conf.
Remove:
public = yes
change the modes to 0XX0
the last bit is for the world or everyone or public
>
> Thanks!
--
Gruss
Harry Jede
More information about the samba
mailing list