[PATCH] honour 'disable netbios' to discourage messing with 'server services'

Andrew Bartlett abartlet at samba.org
Wed Feb 6 03:05:00 MST 2013

On Wed, 2013-02-06 at 15:42 +1100, Dewayne Geraghty wrote:

> For the FreeBSD folk, because this is a FreeBSD 9.1 jail this message is produced during a 4.0.1 server startup:
> Which I ignore for the time being as samba boots.  However on 4.0.3 the behaviour is different
> 	task_server_terminate: [nbtd failed to setup interfaces]
> 	samba_terminate: nbtd failed to setup interfaces
> And stops. So I removed nbt from the "server services" line above.  
> Win PC's can depart, join, login and access fileshares; and smbclient -k works nicely.
> The homedrive isn't being mapped, but that's a different matter


I'm not sure why a FreeBSD jail restricts Samba from listening on this
socket, but the 'fail all of samba' behaviour is quite deliberate.  We
do not want to debug 'half of samba' configurations, at least for now
all services a required.  

It may well still appear to work, assuming nothing else (eg nmbd)
attempts to provide a conflicting service, because a well functioning
modern client will use DNS in preference, but we do not recommend it.  

Instead, work out why you cannot bind to this port.  (We bind to
broadcast sockets due to the nature of nbt broadcasts.  I'm not sure of
the exact details however). 

If you want to disable using netbios on your network, please test the
attached patch for me, by setting 'disable netbios = yes' in the
smb.conf.  The nbt server should not start, nor should we use it as a
client.  (This patch does not make nmbd honour this setting yet however)

Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-nbt-Ensure-source4-nbt-client-and-server-honour-d.patch
Type: text/x-patch
Size: 1867 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130206/c5bba67f/attachment.bin>

More information about the samba-technical mailing list