[Samba] Re: Minimal Samba

Tom Schaefer tom at umsl.edu
Wed Apr 27 13:18:05 GMT 2005


Nice example John.  But, at least in my experience and the smb.conf man
page would seem to concur, it won't work at all under Samba 3.x unless you
add the line "smb ports = 139".

The following two sections of the smb.conf man page more or less spell out
the problem..

     smb ports (G)
          Specifies which ports the server should listen  on  for
          SMB traffic.

          Default: smb ports = 445 139

     %L   the NetBIOS name of the  server.  This  allows  you  to
          change  your config based on what the client calls you.
          Your server can have a ``dual personality''.

          This parameter is not available when Samba  listens  on
          port 445, as clients no longer send this information.

Tom Schaefer


On Tue, 26 Apr 2005 08:31:23 -0600
John H Terpstra <jht at Samba.Org> wrote:

> 
> It is possible.
> 
> Master smb.conf file:
> 
> [global]
> 	workgroup = FORTKNOX
> 	security = user
> 	netbios name = ARMEDGUARD
> 	netbios aliases = BANDIT
> 	include = /etc/samba/smb.conf.%L
> 
> [homes]
> 	read only = No
> 
> 
> 
> 
> Now for the 'bandit' smb.conf:
> 
> [global]
> 	workgroup = FORTKNOX
> 	security = share
> 	netbios name = BANDIT
> 	guest ok = Yes
> 
> [cashpool]
> 	path = /money
> 	read only = yes
> 	guest only = yes
> 


More information about the samba mailing list