[Samba] Making shares invisible to unauthorized users

Adam Tauno Williams awilliam at whitemice.org
Tue Apr 27 10:35:18 GMT 2004

> So, I want to set up each share so that it is only readable and writeable by 
> a single user. And so that only that user can see the share. What are the key 
> settings to achieve this kind of "visibility and access control"? 
> I have figured out most of my Samba issues on my own, but I have a deadline 
> today to get this issue resolved and I would appreciate hearing from someone 
> who knows the solution. 

Define each share in a file such as smb.{username}.conf and "include =
smb.%U.conf" in your master smb.conf.  The share will only exist for the
matching user.  You can do the same by machine name or primary group.

More information about the samba mailing list