[Samba] samba multiple instances
devzero at web.de
devzero at web.de
Sat Aug 28 16:10:42 GMT 2004
Hi,
regarding my "problem" with nmbd i took a look into the code (nmbd.c) and found:
static BOOL open_sockets(BOOL isdaemon, int port)
{
/*
* The sockets opened here will be used to receive broadcast
* packets *only*. Interface specific sockets are opened in
* make_subnet() in namedbsubnet.c. Thus we bind to the
* address "0.0.0.0". The parameter 'socket address' is
* now deprecated.
*/
mhhh - if the socket address parameter is deprecated - why is it still mentioned in the documentation section of smb.conf on the website ?
ok - documentation is always behind - maybe it needs an update ?
i still wonder: why should nmbd need to bind to 0.0.0.0 to receive broadcast packets ?
i have a network 192.168.0.0/24 and so i want nmbd bind to interface 192.168.0.100 - and that would be quite sufficient to receive broadcasts from 192.168.0.100 - wouldn`t it ?
any hints ?
TIA
roland
>check out the following smb.conf parameters
>
>private dir
>lock directory
>pid directory
>
>
>devzero at web.de wrote:
>> Hi !
>> I want to run 2 samba instances on my linux server.
>> the server has 2 ip adresses and i made 2 different smb.conf`s (2 different \
>> netbios-names/workgroups bound to specific interfaces - params "interfaces" , "bind \
>> interfaces only" and "socket address") furthermore i cloned the start/stopscripts \
>> (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s.
>> but that doesnt work perfect - i can connect to the different ip`s and have 2 \
>> smbd`s serving files - but i wonder about the following:
>>
>> - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 \
>> use /var/lib/samba2 for their TDB backend files. also nmbd writes a browse.dat - so \
>> - we have concurrent access on that file if 2 nmbd`s are running, right? hardcoded \
>> paths ?
>> - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i \
>> configured bind interfaces only (bug?). that must be the reason why browsing \
>> doesn`t work when 2 instances are up and running.
>> can someone help me with this ?
>>
>> i`m sure that multi-instance of samba should work in general - but there seem to be \
>> some bells and whistles.....
>> regards
>> roland
>>
>>
>>
________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193
More information about the samba
mailing list