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'm on Maverick trying to access shared folders hosted on Windows machines across a home network. Mysteriously I stopped being able to see them through Nautilus (I couldn't even open Windows network and see my own machine), nor using "smbclient -L //HOSTNAME" from the command line. The error code I got was NT_STATUS_UNSUCCESSFUL.

share|improve this question
up vote 6 down vote accepted

I discovered the problem was I had recently started using OpenDNS and Samba resolves local hostnames using DNS. Of course, OpenDNS can't resolve my local network hostnames.

The solution is to edit your Samba configuration so that the hostnames are resolved locally and then restart Samba:

  1. Edit /etc/samba/smb.conf (To edit it within the terminal, run sudo nano /etc/samba/smb.conf. To edit it within gedit, aka Text Editor, run gksu gedit /etc/samba/smb.conf from the terminal.)

  2. Change the line

    ; name resolve order = lmhosts host wins bcast
    name resolve order = lmhosts wins bcast host
    (note remove semicolon and change order)

  3. Restart Samba from the terminal:

    • Maverick and later: "sudo restart smbd"
    • Lucid and before: "/etc/init.d/samba restart"
share|improve this answer
Use /etc/init.d/sambar restart in older versions. – Javier Rivera Jan 20 '11 at 7:52

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.