Making My NAS Work in Lion

Netatalk seems to always have some issue with OS X. Why I still use little NAS boxes for this that and the other is beyond me. I got stuck dealing with this for a little while and if you’re using Netatalk w/ a DHCAST128 UAM you probably will too. For more on DHCAST see the Netatalk page on UAM support. Kerberos and DHX2 are arguably better, but I’ve found they don’t always work right on some of my NAS boxes.

This wasn’t just a quick defaults command as it was in previous instances. It’s not much of a script but the following should fix it if you’re having this issue like I was.

/usr/bin/defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
/bin/sleep 60
/usr/bin/defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array “Cleartxt Passwrd” “MS2.0″ “2-Way Randnum exchange”

I had to reboot on one of my machines after this but on the others I didn’t. Hope it helps someone else…

And if you want to go back to the way things were before, simply remove com.AppleShareClient.plist from /Library/Preferences (w/ sudo):

rm /Library/Preferences/com.apple.AppleShareClient.plist

3 Comments

  • david
    July 21, 2011 - 8:05 pm | Permalink

    I know its my own damn fault for not having made a backup, but could your please tell me how to restore the settings to the state they were *before* applying your alterations.

    I’ve been able to update netatalk and I’d like to go back to the original settings.

    Thank you for your suggestion and help

    • July 21, 2011 - 8:39 pm | Permalink

      I added a little command at the end of the article that will reset those settings that we created. Since the plist didn’t exist before we started, just doing an rm or a trash of it and restarting should just reset you back to the way things were.

  • Pingback: Lion: Connecting to legacy AFP services – and Mac OS X (server) | iPhone 4

  • Comments are closed.