[Samba] nmbd appears unresponsive

Robert J. Hansen rjh at sixdemonbag.org
Sun Feb 14 09:44:16 MST 2010

I am trying to get Samba 3.4.0 (on an Ubuntu 9.10 box) set up as a file
server for my home.  The router is; the Ubuntu box
("chronicles") is; the OS X box I'm using for testing purposes
("job") is  From job, I can see ports 139 and 445 on
chronicles are open.  Neither box has 'chronicles' or 'job' listed in
its /etc/hosts file.

When browsing via IP address, \\ can see shares on \\
and vice-versa.  Browsing by name, though, gets me absolutely nowhere.
The Ubuntu box is able to resolve \\chronicles as being itself, but it
can't look up \\job for love or money.  (Additionally, discovering
shares via the browser doesn't work -- but I suspect this is related to
my apparent problems with nmbd.)

I have followed the checklist in chapter 38 of the Samba HOWTO
Collection, up through step 8 where things go haywire.  "Fix the nmbd
installation" is listed as the way to overcome this, but unfortunately
the checklist is a little sparse on precisely how to do this.

In step 6 (run "nmblookup -d 2 '*'"), I discovered that I had to
explicitly give it a target.  By itself, executing that command on
chronicles ( did not discover job (  By changing
the command line to "nmblookup -B -d 2 '*'", I was able to get
a response back from job.  This seems a little strange to me: step 6
seems to imply this should only be necessary if the two machines are on
different subnets.

My smb.conf file follows:


	server string = %h server (Samba, Ubuntu)
	interfaces =,
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	name resolve order = wins bcast lmhosts host
	os level = 65
	preferred master = Yes
	domain master = Yes
	dns proxy = No
	wins support = Yes
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	hosts allow =, 127.
	hosts deny = ALL

	comment = Home Directories
	valid users = %S
	read only = No
	create mask = 0700
	directory mask = 0700

	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	printable = Yes
	browseable = No
	browsable = No

	comment = Printer Drivers
	path = /var/lib/samba/printers

	comment = testing purposes
	path = /tmp


Thank you all for any help you can provide.  I appreciate it.

More information about the samba mailing list