Forcing Samba host to become domain/local master browser?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Forcing Samba host to become domain/local master browser?

Winfried
Hello

To investigate the issue I have with deleting files on a Samba host (a.k.a. LINUX), I installed a second Samba server on my LAN (UBUNTU).

However, I didn't pay attention to browser-related infos, so that I guess LINUX would remain the domain/local browser.

So I reconfigured the hosts thusly:
=================== LINUX # cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
netbios name = LINUX

local master = no
=================== UBUNTU # cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
netbios name = UBUNTU

wins support = yes
domain master = yes
preferred master = yes
local master = yes
os level = 255

It's been 20mn since I reloaded both instances of Samba, but it appears that LINUX is still the master browser:
============================== C:\Users\fred>nbtstat -a linux
Local Area Connection:
Node IpAddress: [192.168.0.1] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ---------------------------------------------
    LINUX          <00>  UNIQUE      Registered
    LINUX          <03>  UNIQUE      Registered
    LINUX          <20>  UNIQUE      Registered
    ..__MSBROWSE__.<01>  GROUP       Registered
    WORKGROUP      <1D>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <00>  GROUP       Registered
==============================

Besides, UBUNTU is still not reachable:
============================== C:\Users\fred>net view
Server Name            Remark

--------------------------------------------------
\\FRED-PC
\\LINUX                Samba 3.6.6
The command completed successfully.
==============================

Should I just wait longer for UBUNTU to 1) be added to the list of hosts and 2) become the local/domain master browser, or should I run some command to force LINUX to stop being the local browser?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Forcing Samba host to become domain/local master browser?

Ricky Nance-2
Can you confirm that nmbd is running on UBUNTU? ps ax | grep nmbd

Ricky


On Fri, Nov 29, 2013 at 5:10 PM, Winfried <[hidden email]> wrote:

> Hello
>
> To investigate the issue I have with deleting files on a Samba host (a.k.a.
> LINUX), I installed a second Samba server on my LAN (UBUNTU).
>
> However, I didn't pay attention to browser-related infos, so that I guess
> LINUX would remain the domain/local browser.
>
> So I reconfigured the hosts thusly:
> =================== LINUX # cat /etc/samba/smb.conf
> [global]
> workgroup = WORKGROUP
> netbios name = LINUX
>
> local master = no
> =================== UBUNTU # cat /etc/samba/smb.conf
> [global]
> workgroup = WORKGROUP
> netbios name = UBUNTU
>
> wins support = yes
> domain master = yes
> preferred master = yes
> local master = yes
> os level = 255
>
> It's been 20mn since I reloaded both instances of Samba, but it appears
> that
> LINUX is still the master browser:
> ============================== C:\Users\fred>nbtstat -a linux
> Local Area Connection:
> Node IpAddress: [192.168.0.1] Scope Id: []
>
>            NetBIOS Remote Machine Name Table
>
>        Name               Type         Status
>     ---------------------------------------------
>     LINUX          <00>  UNIQUE      Registered
>     LINUX          <03>  UNIQUE      Registered
>     LINUX          <20>  UNIQUE      Registered
>     ..__MSBROWSE__.<01>  GROUP       Registered
>     WORKGROUP      <1D>  UNIQUE      Registered
>     WORKGROUP      <1E>  GROUP       Registered
>     WORKGROUP      <00>  GROUP       Registered
> ==============================
>
> Besides, UBUNTU is still not reachable:
> ============================== C:\Users\fred>net view
> Server Name            Remark
>
> --------------------------------------------------
> \\FRED-PC
> \\LINUX                Samba 3.6.6
> The command completed successfully.
> ==============================
>
> Should I just wait longer for UBUNTU to 1) be added to the list of hosts
> and
> 2) become the local/domain master browser, or should I run some command to
> force LINUX to stop being the local browser?
>
> Thank you.
>
>
>
> --
> View this message in context:
> http://samba.2283325.n4.nabble.com/Forcing-Samba-host-to-become-domain-local-master-browser-tp4657293.html
> Sent from the Samba - General mailing list archive at Nabble.com.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|

Re: Forcing Samba host to become domain/local master browser?

Winfried
Thanks Ricky, problem solved:

C:\Users\fred>nbtstat -a linux

       Name               Type         Status
    ---------------------------------------------
    LINUX          <00>  UNIQUE      Registered
    LINUX          <03>  UNIQUE      Registered
    LINUX          <20>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <00>  GROUP       Registered

C:\Users\fred>nbtstat -a ubuntu

       Name               Type         Status
    ---------------------------------------------
    UBUNTU         <00>  UNIQUE      Registered
    UBUNTU         <03>  UNIQUE      Registered
    UBUNTU         <20>  UNIQUE      Registered
    ..__MSBROWSE__.<01>  GROUP       Registered
    WORKGROUP      <1D>  UNIQUE      Registered
    WORKGROUP      <1B>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <00>  GROUP       Registered

The cause was that I assumed incorrectely that running "service smbd reload" on the Ubuntu host would also tell nmbd to reload its configuration file. OTHO, Debian provides a single script to handle both applications (/etc/init.d/samba reload).

Thank you.