Jump to content

Samba shares visible ONLY to valid users?


Recommended Posts

Is it possible to have my unraid samba shares visible ONLY to valid users? 

 

For instance, I have a user 'nick' and a user 'streaming'.  'Nick' is a valid user on all shares (movies, photos, backup, personal, etc) and has read/write access to everything.  'Streaming' is a valid user only on 'tv' and 'movies', and only has read access to those two shares.  If 'streaming' tries to access any other shares, access is (correctly) denied.  I want those shares to not show up as browseable for 'streaming'

 

I set up my tv-connected streaming device to log in as 'streaming', and I want ONLY the 'tv' and 'movies' shares to be visible to that user so that I don't have to scroll through a dozen different shares just to get to the two that are relevant to the device.  When 'nick' logs in, I want all shares to be visible and browseable.

 

I've spent quite a bit of time over the past day trying to figure this out.  There are a few relevant samba config options, but none does quite what I'm looking for.  I've found about a dozen threads (on other forums/mailing lists) of people asking the same question, with no valid solutions offered.

 

Setting "browseable=no" on the non-streaming shares would sort of accomplish this, but then 'nick' couldn't browse all the shares except by typing the name of the share or auto-mounting the shares on startup or something.  I don't want to do this.

 

Setting "hide unreadable=yes" sounds like it does exactly what I want.  However, this only works on files/directories within a given share.  It does not hide the top-level share itself.

 

Any ideas??

Link to comment

I don't think this is possible (this is a Windows limitation).  A share can be set to broweable Yes or No, but not further qualified as to which user is logged into the machine doing the browsing.  I believe this can be set up with Active Directory however, but using AD is probably beyond ability/need of most users.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...