[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
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/951087

Title:
  Samba non-functional on boot.

Status in “samba” package in Ubuntu:
  New

Bug description:
  Even though nmbd and smbd are running after boot, Samba service is unavailable.
  ===========================
  ps axf |grep mbd
  2467 ?        Ss     0:00 smbd -F
  2469 ?        S      0:00  \_ smbd -F
  2478 ?        Ss     0:00 nmbd -D
  ===========================

  Samba does not allow connections from other systems and nmap from
  another system does not list ports 139 and 445 as open.

  Restarting both nmbd and smbd after boot makes Samba service available and nmap now shows ports open:
  ===========================
  PORT     STATE SERVICE
  139/tcp  open  netbios-ssn
  445/tcp  open  microsoft-ds
  ===========================

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: samba 2:3.6.3-1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-18.28-generic 3.2.9
  Uname: Linux 3.2.0-18-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.94.1-0ubuntu2
  Architecture: amd64
  Date: Fri Mar  9 14:35:50 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
  ProcEnviron:
   TERM=screen
   SHELL=/bin/bash
   PATH=(custom, no user)
  SourcePackage: samba
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list