Two samba servers, same machine?

Rafał Szcześniak rszczesniak at mis.com.pl
Mon Oct 30 19:03:24 GMT 2000


That's right, I agree. Actually, I use such configuration every day


regards,
rafal




Simo Sorce <simo.sorce at polimi.it>
Sent by: samba-ntdom-admin at us5.samba.org
00-10-30 14:37

 
        To:     blas.castro at midware.es
        cc:     samba-ntdom at samba.org
        Subject:        Re: Two samba servers, same machine?


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?
> 
>          Example: 1 PDC samba-tng and 1 Print server samba-2.x
> 
>         It could be an interesting way to have full functionality with 
just
> one machine.
> 
>         Could anybody send a little "how to"?
> 
>         Thanks in advance. Best Regards.
> 
>  Blas Castro
> Netgiro Spain
> blas.castro at netgiro.com

It's not difficult.
You need:
2 IP address
2 Samba installations with different base path


First you need 2 IP address, you my make an alias on your single Network
Interface Card or have 2 separated NIC.

get samba sources from sdamba.org, compile and install in 2 different
trees,
eg: ./configure --with-prefix=/usr/local/samba1
    make
    make install

    make distclean

    ./configure --with-prefix=/usr/local/samba2
    make
    make install


Then make any configuration on the two smb.conf
(/usr/local/samba1/lib/smb.conf and /usr/local/samba2/lib/smb.conf)
In smb.conf set these parameters:
bind interface only = True
interfaces = xxx.xxx.xxx.xxx

for every smb.conf set one of the IP you have on your machine instead of
xxx.xxx.xxx.xxx

so if you have 2 IP 192.168.2.1 and 192.168.2.2 you may bind SAMBA1 and
SAMBA2 to these IP respectively!

hope this is all you need!

Obviously more IP/more installation tree means more samba servers!
-- 
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