I've a Samba server running (version 3.5.8; Linux box), but after upgrading to Mac OS X Lion the Samba server doesn't show up in the "Shared" section in the Finder sidebar anymore. Regular Windows machines show up, so auto-discovery is working. Also I can manually connect to the server (using "Go" -> "Connect to Server" and there entering the server's name), so a connection is possible.

Has anyone got Samba working with Mac OS X Lion?

I noticed that my server and other Windows boxes have different icons. So I clicked on "All..." in the "Shared" section and it looks like this:

enter image description here

So, here "coppermine-int" is a Windows 7 box, "ite" is a Windows XP box, and "deepthouht" is the Samba server. I used Cmd+I on everyone and it turns out that the Windows boxes have "Kind: PC" but the Samba server has "Kind: Server". That's why they have different icons (and are handled differently, I guess), but this doesn't solve my problem.

2 Answers 2


Apple switched to their own implementation of samba in Lion, which doesn't like using Bonjour advertised services on port 139 instead preferring 445.

See this post for changes to make to avahi configuration.

Essentially, you will need to edit or create /etc/avahi/services/smb.service

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

    <name replace-wildcards="yes">%h-SMB</name>
  • Once I switch the port in the smb.conf file to 445 smb ports = 445 139, can I hide the actual samba share so that only Bonjour (avahi) is shown in Finder? Oct 29, 2014 at 23:17

Connect with command-k (which you said you could do)

Once the server is connected look at in the sidebar and change/modify the bonjour name of it to be "more simple". Lion is currently having a lot of issues with SMB shares that have characters in them.

I had a server that had a period(.) in it and was having this exact issue. Changed it to all lowercase letters and it has been splendid ever since.

  • That's not it. My server is called "deepthought", so there's no special character in it. In fact, I have a Windows box that's called "coppermine-int" and it shows up (see screenshot in the original post). Aug 14, 2011 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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