I setup Samba service for a group of Mac users for file sharing. After a couple of months, the users are not satisfied with the performance and constant problems with permissions. I then setup AFP service and see if it works better. The setup did not take long and the users are happy with it so far. This is the first time I setup AFP service. I just want to write down the steps I used to install it so I can refer to them later.
If you’re thinking about purchasing a new GPU, we’d greatly appreciate it if you used our Amazon Associate links. The price you pay will be exactly the same, but Amazon provides us with a small commission for each purchase. It’s a simple way to support our site and helps us keep creating useful content for you. Recommended GPUs: RTX 5090, RTX 5080, and RTX 5070. #ad
- The service is provided by netatalk package. The first step is to install it if it’s not already installed.
sudo yum install netatalk
- Edit netatalk.conf. On Scientific Linux 6, the configuration files are in /etc/netatalk. Make sure you have these lines.
CNID_METAD_RUN=yes AFPD_RUN=yes ATALKD_RUN=no PAPD_RUN=no TIMELORD_RUN=no A2BOOT_RUN=no
- Edit afpd.conf in the same directory. Note that I want to use Kerberos, so I included them in here. Otherwise, you can remove uams_gss.so and the second line.
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so,uams_gss.so -nosavepassword \ -k5service afpserver -k5keytab /etc/krb5.keytab -k5realm MYCOMPANY.COM
- Edit AppleVolumes.default and have this line at the end.
/path_to_afp_share allow:@groupname options:usedots,upriv
replace the path_to_afp_share with the path of the directory you want to share. Replace the groupname with your group.
- Start the netatalk service
sudo service netatalk start
- Test the AFP service. If it runs OK, type this command to set it to run at boot.
sudo chkconfig netatalk on
Leave a Reply