[Bug 951087] Re: Samba non-functional on boot.

darkphader 951087 at bugs.launchpad.net
Fri Mar 9 22:49:46 UTC 2012


On Fri, Mar 9, 2012 at 3:16 PM, Jelmer Vernooij
<951087 at bugs.launchpad.net> wrote:
> What does 'netstat -l' say, does it list anything for smbd and nmbd?

Yes.
=================================
# netstat -lp |grep mbd
tcp        0      0 localhost:netbios-ssn   *:*
LISTEN      751/smbd
tcp        0      0 localhost:microsoft-ds  *:*
LISTEN      751/smbd
udp        0      0 172.26.63.25:netbios-ns *:*
         1045/nmbd
udp        0      0 nicedog.kwla:netbios-ns *:*
         1045/nmbd
udp        0      0 *:netbios-ns            *:*
         1045/nmbd
udp        0      0 172.26.63.2:netbios-dgm *:*
         1045/nmbd
udp        0      0 nicedog.kwl:netbios-dgm *:*
         1045/nmbd
udp        0      0 *:netbios-dgm           *:*
         1045/nmbd
unix  2      [ ACC ]     STREAM     LISTENING     8679     1045/nmbd
        /var/run/samba/unexpected
=================================

Nmap from another system:
=================================
Nmap scan report<snip>
Not shown: 996 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
631/tcp  open  ipp
=================================

After restarting nmbd and smbd:
=================================
# netstat -lp |grep mbd
tcp        0      0 localhost:netbios-ssn   *:*
LISTEN      2058/smbd
tcp        0      0 nicedog.kwl:netbios-ssn *:*
LISTEN      2058/smbd
tcp        0      0 localhost:microsoft-ds  *:*
LISTEN      2058/smbd
tcp        0      0 nicedog.kw:microsoft-ds *:*
LISTEN      2058/smbd
udp        0      0 172.26.63.25:netbios-ns *:*
         2050/nmbd
udp        0      0 nicedog.kwla:netbios-ns *:*
         2050/nmbd
udp        0      0 *:netbios-ns            *:*
         2050/nmbd
udp        0      0 172.26.63.2:netbios-dgm *:*
         2050/nmbd
udp        0      0 nicedog.kwl:netbios-dgm *:*
         2050/nmbd
udp        0      0 *:netbios-dgm           *:*
         2050/nmbd
unix  2      [ ACC ]     STREAM     LISTENING     12071    2050/nmbd
        /var/run/samba/unexpected
=================================

=================================
Nmap scan report<snip>
Not shown: 994 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
=================================

However the problem only occurs when I use the following (valid syntax
and configuration) in smb.conf:
=================================
interfaces = 127.0.0.1 172.26.62.112
bind interfaces only = Yes
=================================
If I comment the above out and reboot Samba is live but it's not the
desired configuration.

Also even the more general syntax (again not the desired configuration) fails:
=================================
interfaces = lo eth0
bind interfaces only = Yes
=================================

Seems like a timing issue with Samba being brought up to early. Had a
similar issue with an earlier Ubuntu release that was never resolved.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/951087

Title:
  Samba non-functional on boot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/951087/+subscriptions



More information about the Ubuntu-server-bugs mailing list