Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed a Samba server using Ubuntu Server as the OS. When the computer starts, smbd and nmbd both start correctly. However, if I go to a client and type:

$ smbclient -L feynman

I get:

Enter chris's password: 
Connection to feynman failed (Error NT_STATUS_UNSUCCESSFUL)

If I then go to the server and restart the smbd service, it works correctly.

I have the server configured to share a USB drive; is it possible that it's starting before the USB drive is available?

I don't see anything interesting in smbd.log.

share|improve this question

You can check Samba binding to your network interfaces with

root@server:~# lsof -ni:139
smbd    2265 root   29u  IPv4  13788      0t0  TCP (LISTEN)
smbd    2265 root   31u  IPv6  13790      0t0  TCP [::1]:netbios-ssn (LISTEN)

Here it's binding only to the loopback interface and doing a smbclient -L will work.

Depending on your smb.conf (interfaces, and bind interfaces only) Samba will bind only to the loopback interface if you use DHCP and will bind OK after you restart it.

This is happening because upstart doesn't wait for all network interfaces to be up, see

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.