Hiding data set shares in smb from specific users

Joined
Jan 18, 2019
Messages
52
Hey everyone i need a little support and can't for the life of me work out how to do it if it's possible. I have two users Derek (admin) & Adam (general user), i have created a dataset called private which is to store personal files, documents, passwords etc. I set permissions so Derek can read, write and Adam is locked out (permission denied). I created a smb share for the dataset and when Derek logs in via the network he can see the private dataset read, write etc and when Adam logs in he can see the Private dataset but throws up the permission denied no access allowed.

All good BUT how can i hide the private file from Adam which means when he logs into the network he won't see the dataset full stop but Derek can when he logs in i'm Stumped as new to working with a freenas.

Cheers everyone
 

Matt_G

Explorer
Joined
Jan 24, 2016
Messages
65
Access based enumeration seems to be missing from the new UI.

Using the legacy UI in FreeNAS, go into Sharing>Windows shares and edit the share you don't want Adam to see. Turn on "Access based enumeration".
From a windows pc make sure Adam has no permissions to the share.
Best way to do that is to open computer management in Windows and at the top where it has the pc name, right click it and click connect to another computer.
Give it the IP of your Freenas box. It will throw an error about event viewer being unable to connect to the RPC server. Just click ok and ignore it.
Under Shared Folders highlight shares then right click the private share and click properties.
Under the Share Permissions tab, make sure Adam is not listed at all, nor any groups he belongs to.
Should work for you.
Sorry if this is overly simplistic.
I have no way of knowing your level of knowledge...
 
Top