Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 411019

Summary: net-fs/samba - nmbd silently dies when invalid listening address specified.
Product: Gentoo Linux Reporter: Tim Bowers <djsmiley2k>
Component: [OLD] ServerAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED OBSOLETE    
Severity: normal CC: bkohler, fcoiffie
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tim Bowers 2012-04-06 12:17:17 UTC
If you set a nonexistant address for interfaces in smb.conf nmb will silently die, causing netbios lookups (and possibly other functions) to fail. However smbd continues to run, providing some aspects of samba file sharing.


Example code:

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
   interfaces = 192.168.1.10/24 192.168.2.10/24

## 192.168.2.10 doesn't exist (it was infact an old interface I'd previously removed).

Expected behaviour:
Samba should run normally, and ignore the non-existant interface (possibly warning about it).

Actual behaviour:
nmbd silently dies, smbd spawns two instances (one for each IP).
Comment 1 Víctor Ostorga (RETIRED) gentoo-dev 2012-04-10 15:07:04 UTC
This is a known issue, yet I don't know what upstream has to say about this. 

Please increase your parameter "log level" and attach your /var/log/samba/log.nmbd
Comment 2 Víctor Ostorga (RETIRED) gentoo-dev 2012-04-10 15:37:49 UTC
I think this behaviour is more a "feature" than a bug, however I suggest you to open a bug in samba bugzilla [1]

[1] https://bugzilla.samba.org/
Comment 3 Ben Kohler gentoo-dev 2020-01-07 21:20:43 UTC
Please reopen if this still affects samba-4