Re: [Samba] Multiple instances of samba

2005-08-29 Thread Eric Boehm
On Fri, Aug 26, 2005 at 07:50:31AM -0500, Ed Curtis wrote:
> "Ed" == Ed Curtis <[EMAIL PROTECTED]> writes:

Ed>  I found instructions on how to start 2 instances of samba
Ed> binding each instance to an individual ip address or interface
Ed> on the server but it will only start the first insatnce I try.

Ed> /usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN1
Ed> /usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN1
Ed> /usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN2
Ed> /usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN2

Ed> Only the DOMAIN1 will start. I get no errors when running the
Ed> commands to start the second instance but it's not running.

Ed>  Any ideas?

You have to make sure that you include the following:

smb.conf.DOMAIN1
bind interfaces only = yes
interfaces = 127.0.0.1, 

smb.conf.DOMAIN2
bind interfaces only = yes
interfaces = 

E.g.,

smb.conf.DOMAIN1
bind interfaces only = yes
interfaces = 127.0.0.1, 192.168.1.2/24

smb.conf.DOMAIN2
bind interfaces only = yes
interfaces = 192.168.2.1/24

It doesn't matter which of the two has the loopback address,
127.0.0.1, so long as only *ONE* of them has it.

In addition, you will probably want to assign a 

netbios name = 

with the appropriate hostname to each config file and insert the
hostname (as appropriate) into the 

lock directory = /usr/local/samba/var//locks

and, lastly, the log file path

log file = /usr/local/samba/var//log.%m

-- 
Eric M. Boehm  /"\  ASCII Ribbon Campaign
[EMAIL PROTECTED]   \ /  No HTML or RTF in mail
X   No proprietary word-processing
Respect Open Standards / \  files in mail
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Multiple instances of samba

2005-08-26 Thread Denis Vlasenko
On Friday 26 August 2005 15:50, Ed Curtis wrote:
>  I found instructions on how to start 2 instances of samba binding each
> instance to an individual ip address or interface on the server but it
> will only start the first insatnce I try.
>
> /usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN1
> /usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN1
> /usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN2
> /usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN2
>
> Only the DOMAIN1 will start. I get no errors when running the commands to
> start the second instance but it's not running.
>
>  Any ideas?

use strace, read the logs, read the manpages on smb.conf etc...
(I suspect second samba fails to open listening sockets)
--
vda
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Multiple instances of samba

2005-08-26 Thread Ed Curtis

 I found instructions on how to start 2 instances of samba binding each
instance to an individual ip address or interface on the server but it
will only start the first insatnce I try.

/usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN1
/usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN1
/usr/sbin/smbd -s /etc/samba/smb.conf.DOMAIN2
/usr/sbin/nmbd -s /etc/samba/smb.conf.DOMAIN2

Only the DOMAIN1 will start. I get no errors when running the commands to
start the second instance but it's not running.

 Any ideas?

Thanks,

Ed

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba