Two samba servers, same machine?

eskimo eskimo at direct.ca
Mon Oct 30 17:19:59 GMT 2000


the following options helped me:
  lock directory = 
  socket address = 
  bind interfaces only =
  interfaces =
  hosts allow =

i split my configuration files up and used the "include = " quite a bit.


-----Original Message-----
From: samba-ntdom-admin at lists.samba.org
[mailto:samba-ntdom-admin at lists.samba.org]On Behalf Of
tschweikle at FIDUCIA.de
Sent: Monday, October 30, 2000 6:35 AM
To: - *simo.sorce at polimi.it
Cc: - *Samba-Ntdom at Samba.Org; - *Blas.Castro at Midware.Es
Subject: Re: Two samba servers, same machine?



simo.sorce at polimi.it:
>Blas Castro wrote:
>>
>>         Hello, does any guru know whether it is possible two differents
samba
>> servers running in the same machine two differents samba servers?
>> [...]
>
> It's not difficult.
> You need:
> 2 IP address
> 2 Samba installations with different base path

Ok. This works, but having two different installation Paths isn't
necessary. You only need two different config files. Telling smbd and nmbd
which to use at startup:

/usr/sbin/nmbd -s /etc/smb1.conf
/usr/sbin/nmbd -s /etc/smb2.conf

/usr/sbin/smbd -s /etc/smb1.conf
/usr/sbin/smbd -s /etc/smb2.conf

If the second nmbd or smbd doesnt start have a look at '/var/lock/samba'.
Maybe you'll find something like
nmbd.pid there. Copy it to nmbd1.pid, then start the second nmbd. Same
applies for smbd.

It's a bit a pitty: there is no configuration option to put these file
somewhere else then '/var/lock/samba' thus you have to do it your own.

Setting the debug level to 3 helps finding any errors. But I don't
recomend leaving it there --- the log gets realy huge.

--
Thomas





More information about the samba-ntdom mailing list