Two samba servers, same machine?

Simo Sorce simo.sorce at polimi.it
Mon Oct 30 16:58:50 GMT 2000


tschweikle at FIDUCIA.de wrote:
> 
> 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


Yes, this is true, but only if you want identical configurations!
If you want different passwd backends types for example you need to have
two installations!

-- 
Simo Sorce - Integrazione Sistemi Unix/Windows - Politecnico di Milano
E-mail: simo.sorce at polimi.it
Tel.int: 02 2399 2425 - Fax.int. 02 2399 2451
-----------------------------------------------------------------
Be happy, use Linux!




More information about the samba-ntdom mailing list