yum -y install netatalk avahi dbus nss-mdns

chkconfig netatalk on
chkconfig messagebus on
chkconfig avahi-daemon on

adduser afp
passwd afp

vi /etc/netatalk/afpd.conf

“hostname” -tcp -noddp -uamlist, -nosavepassword

vi /etc/netatalk/AppleVolumes.default

:DEFAULT: “HTTPD” allowed_hosts: allow:afp rwlist:afp options:upriv,usedots dperm:0770 fperm:0660
~ “HOME”
/var/www/html/ “HTML”

vi /etc/nsswitch.conf
hosts:      files mdns4_minimal dns mdns mdns4

vi /etc/avahi/services/afpd.service

<?xml version=”1.0″ standalone=’no’?>
<!DOCTYPE service-group SYSTEM “avahi-service.dtd”>
<name replace-wildcards=”yes”>%h</name>


mv /etc/avahi/services/ssh.service /etc/avahi/services/ssh.service.disabled

iptables -I INPUT -p udp –dport 548 -j ACCEPT
iptables -I INPUT -p tcp –dport 548 -j ACCEPT
iptables -I INPUT -p tcp –dport 5353 -j ACCEPT
iptables -I INPUT -p udp –dport 5353 -j ACCEPT
iptables -I INPUT -p udp –dport 5354 -j ACCEPT
iptables -I INPUT -p tcp –dport 5354 -j ACCEPT

service iptables save

service avahi-daemon start
service messagebus start
service netatalk start

service avahi-daemon restart
service messagebus restart
service netatalk restart


/usr/sbin/afpd -V
afpd 2.2.0 – Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

AFP3.x support: Yes
TCP/IP Support: Yes
DDP(AppleTalk) Support: No
CNID backends: dbd last tdb
SLP support: No
Zeroconf support: Yes
TCP wrappers support: Yes
Quota support: Yes
Admin group support: Yes
Valid shell checks: Yes
cracklib support: Yes
Dropbox kludge: No
Force volume uid/gid: No
ACL support: Yes
EA support: ad | sys
LDAP support: Yes

afpd.conf: /etc/netatalk//afpd.conf
AppleVolumes.system: /etc/netatalk//AppleVolumes.system
AppleVolumes.default: /etc/netatalk//AppleVolumes.default
afp_signature.conf: /etc/netatalk//afp_signature.conf
afp_voluuid.conf: /etc/netatalk//afp_voluuid.conf
afp_ldap.conf: /etc/netatalk//afp_ldap.conf
UAM search path: /usr/lib64/atalk/
Server messages path: /etc/netatalk//msg/
lockfile: /var/lock/afpd

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.