How Do I Install Samba Into Mac OS X Lion? [Ask MacRx]

Mac SMB Networking

Apple made a number of changes to internal components in OS X Lion, including not installing Java by default and changing it’s SMB (Samba) Windows networking code. These changes have broken some previously working setups but fortunately there are workarounds:

I recently upgraded to OSX Lion, little did I know that samba was removed. Now I cant get on to my DNS 323 and my laptop is piling up with junk. I’ve seen on the net that there are way to install samba but all of them are out of my expertise. Can you help me and put it plain english steps?

Alon

Hi Alon,

Lion still has SMB capability, Apple has just replaced the older Samba code with a different implementation. If that’s not working for the shares you need to access, one simple solution is to install Thursby Software’s DAVE on your Mac. This is a fully compliant SMB/CIFS environment which provides much better Windows network support than Apple’s included offerings, and is very easy to install.

DAVE costs $119 but there’s a 30-day trial to see if it meets your needs, and you can get technical support from the vendor if required.

• • •

Readers, have any additional suggestions on this topic, or corrections/clarifications on the advice above? If so, please leave your thoughts in the comments.

  • Wrong

    Not sure if this is helpful or not, but when I updates to Lion I couldn’t connect to my QNAP Raid.   The following was the fix. Had to do with clear text passwords.

    To turn on “DHCAST128? support please do the following:1)  Launch /Applications/Utilities/Terminal and do:sudo chmod o+w /Library/Preferencesdefaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1Press EnterNow restart your computer.2)  From Finder, select an AFP server, or use “Connect To…”.  This will cause the AFP Client to create the full preferences file3)  Launch Terminal again and do:sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array “Cleartxt Passwrd” “MS2.0? “2-Way Randnum exchange”sudo chmod o-w /Library/PreferencesPress EnterNow restart your computer.Note:  To add a “DHCAST128? to the disable list, usesudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array-add “DHCAST128?

    Hope it helps

  • David Butt

    Samba is there & available, however there are a few steps you may need to readily access your DNS 323. You can connect to the device either by its name or ip address. The ip address should be set as a static ip, so it can be readily found. Once you have configured the static ip address in the web-based utility, you should be easily able to find and attach it using the “connect to server” process described above.

    I have on occasion had to reconnect to the DNS 323 server after taking my MBP away from home, but I believe a bit of research on the ‘net will give an explanation  of automatic connection to the DNS 323.

  • Aaron

    I believe that has to do with AppleTalk over TCP/IP for Time Machine, not Samba. My NAS wasn’t capable of working with Lion for that same reason, so I had to use my Apple Airport Extreme with an external USB drive for Time Machine.

  • westondeboer

    Recently had to do this also, but found webdav is a great alternative.

  • Ex2bot

    Not Appletalk. Apple Filing Protocol (AFP). Appletalk was the old localtalk compatible networking that was discontinued after 10.5.

    Confusing, I know.

  • Ammad Waseem Malik

    I have a 343 – I can connect but it wont copy files over 4.29GB – It’ll go upto 4.29 and an error pops up. If the file is smaller than 4.29GB it works fine. Any suggestions?

  • Justin Everett

    I have been doing some design architecture for implementing Mac OS X into the enterprise and was having problems using Automator to connect to some SMB shares.  I worked around this through using Safari and putting in the exact share using the Safari Browser which then opens up a Finder window.  A very easy Automator script can be created using Get Specified URLs and Display Webpages. Hopefully this will help some people out.

  • Alan Netherclift

    My Understanding is that the latest Samba is now covered by the GPL license, which means it cannot be used in a commercial product. It must remain free and opensource.

    To get around this, Apple decide to write their own version of SMB with the release of 10.6 Snow Leopard. Unfortunatley, they didn’t do a very good job of it and there are many and varied problems with it for Snow Leopard and Lion.
    Permissions seems to be the most common problem with network shares especially on Linux and Windows File Servers. Sporadic problems like being able to create a new folder, but not being able to name it, or just getting “Permission Denied’ error messages.
    I have personally paid money to bring this to the attention of Mac Support techs, who passed it onto their engineers, who called me back a month later to tell me that they could duplicate the problems, but there was no plan to fix it and they refunded me the money they charged to talk to them. That was during Snow Leopard rollout. Lion seems to be even worse.
    Your best bet is find a way to install SMB/CIFS on your Mac. There are several how-to’s on the net. This is open source free software. Don’t pay money for a work around for something that Apple broke.
  • OSX_SERVER_ADMIN

    If you’re thinking about going with OS X Lion or Mountain Lion Server and you have Windows computers, too – Don’t Bother. Both versions have major problems with SMB and Windows. (It barely works and loses connection all the time). Just finished rolling back OS X Server from Mountain Lion to Snow Leopard (did the same for Lion earlier this year). Here are some of the issues Windows users will have with OS X server shares using Lion or Mountain Lion:

    Case XXXXXXXXX 8/29/2012

    After Upgrading to Mountain Lion Server – Windows computers are experiencing the following problems with Apple Shares on the Server.

    1. No longer refreshes files list in Windows Explorer. Have to manually refresh every time/every save.

    2. Microsoft Access Database – Lose Write connectivity after a half minute and loses complete connection – access to the database.

    3. When opening a Adobe Acrobat PDF. Doesn’t completely open PDF’s – leaves blank white pages

    4. When closing a Adobe Acrobat PDF – this error message: Insufficient data for an image.

    5. When logging into the OSX server – get this error message:
    There was a problem connecting to the server “SUB.MYDOMAIN.com”.
    The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again.

    6. Cannot copy large files/directories to Windows Shares. Loses Network Connection every time during copy.

    P.S APPLE SUPPORT FOR SERVERS IS A JOKE (PAID SUPPORT)

About the author

Adam RosenAdam Rosen is an Apple certified IT consultant specializing in Macintosh systems new and old. He lives in Boston with two cats and too many possessions. In addition to membership in the Cult of Mac, Adam has written for Low End Mac and is curator of the Vintage Mac Museum. He also enjoys a good libation.

(sorry, you need Javascript to see this e-mail address)| Read more posts by .

Posted in How-To, MacRx | Tagged: , , , |