Netatalk AFP & Mac OS X 10.7 Lion
- March 6th, 2011
- Posted in Technology
- By Steffen L. Norgren
- Write comment
Upon installing Mac OS X 10.7 Lion I discovered one niggling issue. I was unable to connect to my Gentoo Netatalk AFP server. Any connection attempts would result in the following error:
After some Googling, I discovered a quick fix to the problem. Basically, if you haven’t updated your Netatalk config file for some time, you wouldn’t have UAMS DHX2 enabled by default. To enable UAMS DHX2 support, do the following:
Edit afpd.conf:
# vi /etc/netatalk/afpd.conf
Make sure “uams_dhx2.so” is in the “-uamlist” options at the end of the file. For instance, mine looks like this:
- -noddp -transall -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh -udp
Then restart the Netatalk server. Please note that the init script may be different depending on your distribution.
# /etc/init.d/atalk restart
Now you should be able to connect your OS X 10.7 Lion installation to a Linux AFP server. It should be noted, however, that despite AFP working in this setup, I have been unable to get Time Machine to work with these settings. If you’ve managed to get Time Machine to work with Netatalk, post a comment!

i have the same probleme but i don’t understand your solution i have try to type this in terminal but it don’t even work for me ! please give me the complete procedure step y step !
Regards
jeremie
Hi,
Time Machine is working just fine for me. I suggest you take a look at the following guide, especially the avahi part is important. If you get it right your server will behave just like a ‘real’ timecapsule.
http://www.bootc.net/archives/2010/11/07/apple-time-machine-and-netatalk/
Thanks for this great, high-Google-PageRank, post!
I’m also testing Lion and when I tried to connect the Guest account (anonymous) to my share, everything worked, but when loggin in as myself I got the same error, but then in Dutch:
“De versie van de server waarmee u verbinding wilt maken wordt niet ondersteund. Neem contact op met uw systeembeheerder om het probleem op te lossen”
The share I’m trying to connect to is a LaCie Network Space 2 and I don’t have SSH access. So I filed a bug at LaCie, hoping they will fix this soon. Also, I noticed SMB isn’t working, maybe this is due to the SMBX implementation that Apple used to replace Samba…
The solution seems to be to install netatalk 2.2 beta 4 and use the default configs (making sure that uams_dhx2.so is listed as a -uamlist option)
32bit:
https://launchpad.net/~stefanor/+archive/ppa/+build/2455196
64bit:
https://launchpad.net/~stefanor/+archive/ppa/+build/2455195
Good luck!
Just download the .deb file from
https://launchpad.net/~stefanor/+archive/ppa/+build/2455196/+files/netatalk_2.2%7Ebeta4-0%7Eppa1_i386.deb
and run
sudo dpkg install netatalk_2.2~beta4-0~ppa1_i386.deb
If you are using a Debian-based distribution, of course. =p
Looks like it’s working so far… i can appreciate the 2.2 debacle that’s going on, one the one hand I agree the companies really should show some support/respect when they are making money from open source products, but on the other hand I don’t like being caught in the middle of it O:-) Anyway, thanks for the PPA, please update it when they get things sorted out
I’m assuming that you’re referring to this debacle.
I just finished writing an explanation of how to get Time Machine to play nice with a Netatalk server. Unfortunately it doesn’t apply to those who use NAS devices and actually run Netatalk on a Linux server box.
http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/
Works fine !
Thx !!