Apple error -36 on SMB mount

Posted by Dark Training on September 13, 2010 tags: | mac

I recently saw a wild issue in the feild that I wanted to write up because I know that this is going to help someone.

We had a mac that just would not connect to a SMB file share that was hosted on a Linux server. If you google for this you will see a ton of pages that have fixes, even one from Apple, but none of the fixes worked.

So I started doing a trace and pcap dumps looking for information in the traffic that might indicate where it was getting hung up. As it turns out, while the more modern Mac OSes will connect on port 445, Tiger wont and instead tries on 139. In this case the firewall had a rule that blocked port 139.

We created a new rule in the iptables script that allowed access to the machine on 139 and boom, problem solved. I could not find any site that mentioned this as fix, so it's my hope that this helps some other poor soul out there!

Iptables code

#Allow tiger mac to connect on port 139
-A INPUT -s 192.168.16.0/24 -p tcp -m tcp --dport 139 -m state --state NEW,ESTABLISHED \ -j ACCEPT