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 am trying to set up a Samba share on a Centos machine. I want to connect to this server using smbclient on OS X. Here is what happens:

> smbclient -L X.X.X.X
timeout connecting to X.X.X.X:445
timeout connecting to X.X.X.X:139
Error connecting to X.X.X.X (Operation already in progress)
Connection to X.X.X.X failed

What could be going wrong? Here is my iptables dump on the Centos machine (the server):

> iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --             
REJECT     all  --           reject-with icmp-port-unreachable 
ACCEPT     all  --             state RELATED,ESTABLISHED 
ACCEPT     tcp  --             tcp dpt:445 
ACCEPT     tcp  --             tcp dpt:3000 
ACCEPT     tcp  --             tcp dpt:80 
ACCEPT     tcp  --             tcp dpt:443 
ACCEPT     tcp  --             state NEW tcp dpt:22 
ACCEPT     icmp --             icmp type 8 
REJECT     all  --             reject-with icmp-port-unreachable 
ACCEPT     tcp  --             tcp dpt:3000

And finally, my smb.conf:

workgroup = workgroup
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes

writeable = yes
admin users = myusername
path = /home/myhome/
force user = root
valid users = myusername
public = yes
available = yes
share|improve this question
Do the samba logs provide any insight? /var/log/samba/log.smdb and /var/log/samba/log.clientName – Mark Aug 27 '09 at 22:09
Oh, you might have to turn on the logs in [global] "log file = /path/to/log/log.%m" creates a log for each client – Mark Aug 27 '09 at 22:11

You could try flushing the iptable rules to test if it works when there are no rules present:

iptables -F

This might narrow your search down a little or maybe even fix your problem.

share|improve this answer

Your Answer


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