[Samba] Hide the files that doesn't have permission to access

mathias dufresne infractory at gmail.com
Wed Oct 14 13:21:13 UTC 2015


Hi,

Do you want users see only shares they can access or do you want users see
only files they are allowed to open in some share?

If the point is to hide shares you could try "browseable = no" in your
shares declaration, as it is done on [homes] share in addition to "valid
users = user" option.

2015-10-14 11:55 GMT+02:00 Nguyen Xuan. Hai <hai.nguyenxuan at toshiba-tsdv.com
>:

> 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).
>
> Thanks!
>
> --
> =====================================================================
> Nguyen Xuan Hai (Mr)
>
> Toshiba Software Development (Vietnam) Co.,Ltd
>
>
> --
> This mail was scanned by BitDefender
> For more information please visit http://www.bitdefender.com
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list