AFP Server

How to set up an Apple Filing Protocol server (ie appleshare over TCP/IP)

The goal

An AFP server for Macs. Users will be able to use the Mac’s “Connect to server…” command to connect to the AFP server. Users will authenticate using linux user accounts and crypted passwords. They will have access to their home directory. Mac users can also tunnel the connection over ssh, but only if they check this option in the connection window.

install netatalk

sudo apt-get install netatalk

Configuring afpd

Disable all the daemons other than afpd:

codetitle. /etc/default/netatalk


Require secure authentication and enable ssh tunneling:

codetitle. /etc/netatalk/afpd.conf

-uamlist -advertise_ssh -fqdn <your domain here>

For some reason, I couldn’t get this to work unless I put those options all on one line.

Run afpd

/etc/init.d/netatalk restart