0% found this document useful (0 votes)
12 views2 pages

Netatalk CentOS 8 Network Share

This document provides a guide for setting up Netatalk on CentOS 8 to enable AFP mounts for MacOS, facilitating file sharing and Time Machine backups in a small office environment. It includes instructions for installing necessary packages, configuring user permissions, and setting up the Netatalk AFP fileserver. Additionally, it outlines the setup of system services and firewall configurations to ensure proper functionality.

Uploaded by

ZhendongHe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Netatalk CentOS 8 Network Share

This document provides a guide for setting up Netatalk on CentOS 8 to enable AFP mounts for MacOS, facilitating file sharing and Time Machine backups in a small office environment. It includes instructions for installing necessary packages, configuring user permissions, and setting up the Netatalk AFP fileserver. Additionally, it outlines the setup of system services and firewall configurations to ensure proper functionality.

Uploaded by

ZhendongHe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2023/10/30 23:29 Netatalk CentOS 8 network share

octlabs / centos_afpd.md
Last active 3 years ago • Report abuse

Star

Code Revisions 3

Netatalk CentOS 8 network share

centos_afpd.md

Setup MacOS AFP mounts with Apple timemachine for small


office sharings on Linux CentOS 8
All users can access via AFP the same file share folders like sambe "force user, force group" using linux group s-bit and file and dir
mask.

Also with cloud hub to store files local for faster access and not to have to store the data on all end devices.

Example shard directory for /vol1/shares/projects . /vol1/shares/customers

Example nexcloud sync path /vol1/cloud

Linux Users: cloud, employee1, employee2, employee3 ... all with same gid=100(users)

Prepare

yum install netatalk avahi-daemon

chown cloud.users /vol1/shares/cloud


chown employee1.users /vol1/shares/cloud

chmod -R g+rw /vol1/shares/*


find /vol1/shares/* -type d -exec chmod g+s {} \;

Set privilges to cloud user wen sync by client to use valid create mask

vi /etc/profile

if [ $UID -gt 199 ]; then


umask 002
else
umask 022
fi

Setup Netatalk AFP fileserver for Macintosh clients

/etc/netatalk/afp.conf

[Global]
hostname = omega
uam list = uams_dhx2.so
disconnect time = 3
sleep time = 2
log file = /var/log/netatalk.log
zeroconf = yes
save password = no

[Homes]
basedir regex = /home
home name = $u

[Time Machine Employee1]


path = /vol1/timemachine/employee1
valid users = employee1
time machine = yes
vol size limit = 2000000
unix priv = yes
file perm = 0600

[cloud]
path = /vol1/cloud
valid users = employee1, employee2, employee3
file perm = 0660

https://gist.github.com/octlabs/904a346c778beba6c528aca4266d7efe 1/2
2023/10/30 23:29 Netatalk CentOS 8 network share
directory perm = 4770

[customers]
path = /vol1/shares/customers
valid users = employee1, employee2
file perm = 0660
directory perm = 4770

[projects]
path = /vol1/shares/projects
valid users = employee4, employee5
file perm = 0660
directory perm = 4770

Setup System service

systemctl enable netatalk.service


systemctl start netatalk.service
systemctl status netatalk.service

... Setup firewall

crontab

0 15 * * * /usr/bin/chown -R cloud.users /vol1/cloud

https://gist.github.com/octlabs/904a346c778beba6c528aca4266d7efe 2/2

You might also like