[Samba] Per-alias shares?

John H Terpstra jht at samba.org
Thu Sep 23 14:16:47 GMT 2004

On Thursday 23 September 2004 07:00, Ken D'Ambrosio wrote:
> I'm trying to figure out if there's any way to have multiple virtual
> servers on the same machine, each server having different shares.
> Barring running multiple smbd processes, I don't see a way.  Is there one?

Yes! It can be done.

You must create one master server configuration. It will create the master 
server as seen in the Windows networking browser. In its smb.conf file you 
will have something like:

workgroup = BIGBIRDS
netbios name = ALBATROS
netbios aliases = CRANE MUGABIRD
include = /etc/samba/smb.%L.conf

Then for each alias (CRANE and MUGABIRD) you would create 
an /etc/samba/smb.'name'.conf file like:

netbios name = CRANE


netbios name = MUGABIRD


I hope that is clear enough.

- John T.
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
OpenLDAP by Example, ISBN: 0131488732
Other books in production.

More information about the samba mailing list