administration:afp
AFP For Linux File server
Install
- Install the netatalk package
yum install netatalk
- Configure the service for autostart
chkconfig atalk on
Configure the shares
- Modify the configuration file
vi /etc/atalk/AppleVolumes.default
adding the shared directories. At the end of the file you can find a line with only the ~ char, this means share the homedir. The format of the share is like this:
/data/share1 "share1" /data/share2 "test"
- /data/share1 (or /data/share2) is the path to the share on the server and share1 (or test) is the name shown on the Apple computer.
Configure User Access
- Modify the file
/etc/pam.d/netatalk
this way:
#%PAM-1.0 #auth required pam_unix.so #account required pam_unix.so #password required pam_cracklib.so #password required pam_unix.so use_authtok #session required pam_unix.so auth include system-auth account required pam_nologin.so account include system-auth password include system-auth session include system-auth session required pam_loginuid.so
- As you can see the default lines are commented out and others are placed instead. This configuration permit the use of the central authentication of the computer (/etc/passwd, Nis, Ldap, ecc).
The Service
- start the service
service atalk start
- Wait until all the atalk service are started and the try to connect from a Apple computer.
- To connect from the client activate the finder menu and press the Apple+K key combination, on the dialog windows insert the name of the file server.
administration/afp.txt · Last modified: 2008/01/29 17:16 by damir