Server Fault is a question and answer site for system and network administrators. 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 have an Ubuntu Server (Hardy LTS) virtual machine, in which im trying to share a folder via samba.

I can list shares locally fine, via:

smbclient -L localhost

But using similar on my host machine, where is the Ubuntu IP (OS X):

smbclient -L // -U myusername

I get:

Connecting to at port 139
error connecting to (Connection refused)
Error connecting to (Connection refused)
lang_tdb_init: /usr/lib/samba/en_GB.UTF-8.msg: No such file or directory
Connection to failed (Error NT_STATUS_CONNECTION_REFUSED)

Is this a samba error, or a firewall error?

My smb conf file, is the default, with the following changes:

interfaces = eth0
security = user
username map = /etc/samba/smbusers

read only = no
valid users = %S
comment = Home Directories
browseable = yes
share|improve this question
up vote 2 down vote accepted

If it works locally and it's listening on the external interface it's a firewall or routing issue.

share|improve this answer
This was the case ... I can confirm that my firewall works ;) For those reading post at a later date, try iptables --flush to clear your firewall and allow everything in and out. – Jon Hadley Mar 4 '10 at 15:38

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.