[Samba] How to hide shares for users that have no rights

Matthew Geier matthew at arts.usyd.edu.au
Wed Apr 14 21:15:58 GMT 2004

On Thu, 2004-04-15 at 00:48, Vempati Srinivasa Rao wrote:
> 	If we set browseable = no , then share won't visible to valid users
> also. But how to hide the share from user, if user is not valid.

 You CAN do it with 'include' files.

eg I have -
; Include special user files
include = /usr/local/samba/lib/smb.%U.conf

 With %U being substituted for the user. You can do it with groups as
well. (%G)

 You put the 'restricted' share definitions in the conditional include
files, so that definition only gets parsed when particular users /
groups login.

 Only it doesn't work quite as well as you might expect. Even if you are
logged in, Windows appears to pretty well randomly decide to fetch the
share list with an anon connection instead as the logged in user. 

 Users get confused when their share points keep disappearing from the
browse list. So I stopped trying to hide shares...

Matthew Geier <matthew at arts.usyd.edu.au>
Arts IT Unit, Faculty of Arts, Sydney University

More information about the samba mailing list