If you want to share a directory other than the home directory of the authenticated user or if you need to enable guest access, try this simple fix;
Login in as the root user, or change to the user root at the command line, ( su - root ). From the shell command line run the following command.
ln -s /etc/atalk /usr/etc/netatalk [ENTER]This will create a symbolic link from the /etc/atalk directory where the netatalk configuration files are stored to /usr/etc/netatalk, where the afpd process is looking for it's configuration information. The configuration files can now be edited for the desired effects.
The file AppleVolumes.default found in the above mentioned atalk or netatalk directory can be modified to create a new shared volume. Add a path and and share name to the last line of the file in vi or pico. An example would be;
/Shared "Shared Folder"Make sure that the directory exists and has the appropriate permissions for the users accessing it.
To enable guest logins, edit the afpd.conf file found in the same directory. Look for the next to last line or the last commented line ( begins with # ) and begins with the following,
- -transall -uamlist uams_guest.so,uams_clrtxt.so,uams_randnum.soRemove the pound sign at the beginning of the line and move over past the -uamlist entry. Add the following word with the delimiting comma at the end such that it runs into the next uamlist entry without a space separating.
uams_guest.so,Save the changes in the editor of your choice and restart the Apple File Services daemon. This is easiest done with following command.
/etc/rc.d/init.d/atalk restartYou can now access the netatalk volume from a Mac or even via MOL on the same Mac. Using SWAT to configure SAMBA, you can even share the same directory/volume on netbios/Windows creating a cross platform file sharing server.
This HOWTO was written by Jim Dietz