Benches macOS

2

AFP Follow Symbolic Links?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I was wondering if it is possible to configure the AFP service (on 10.4 Server) to follow symbolic links. I currently have several volumes, both physical and network mounts (via NFS) that I have placed into a single directory which I would like to share via AFP.

I have properly created the share point, and client computers can connect via AFP, but only find blank files that cannot be followed.

I've also shared the content via SMB, and when a client connects via SMB, the symbolic links are followed with no difficulties. Unfortunately, for my application, SMB sharing is undesirable.

If it is at all possible to have AFP follow symbolic links, any help on configuring it to do so is appreciated.

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Gerrit DeWitt

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Actually I'm surprised that the symbolic links trick worked with the SMB/CIFS server. As far as I know, the AFP server won't follow symbolic links; rather it presents them as files (which act as links with respect to the client's filesystem).

    I doubt very much that such a feature will ever be introduced as it unnecessarily complicates using AFP share points for network home directories or automounts in general.

    --Gerrit

  2. 0

    Michael Bongard

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    "I doubt very much that such a feature will ever be introduced as it unnecessarily complicates using AFP share points for network home directories or automounts in general."

    Thanks for your reply. Perhaps I am not approaching the problem in an OS X Server mindset. (My experience is mainly with Linux and Windows services.) With *nix, it is possible to mount multiple physical and network volumes in a single master directory:

    /mnt/shares/

    /disk1

    /netdisk2

    /...

    This is done in a way that the underlying mechanism of storage is hidden from the OS browsing the virtual filesystem; that is, a user would see the directory /disk1 or /netdisk2 as logical directories.

    As far as I can tell, OS X will take care of mounting physical disks, network mounts, etc. under /Volumes. I have re-created the essential logical structure via symlinks, which AFS is now not following.

    Is there an accepted practice for organizing data on OS X that is on multiple physical and network volumes into a single, shared coherent structure that does not require symlinks/aliases?

    I would suspect that enabling AFS to follow symlinks is technically possible, especially since both the NFS server daemon and Samba have internal options, configurable via a text file, which allow an administrator to enable/disable symlink following. It seems like the capability for symbolic link following is also in the protocol:

    http://developer.apple.com/documentation/Networking/Conceptual/AFP/index.html?ht tp://developer.apple.com/documentation/Networking/Conceptual/AFP/Preface/chapter1_section1.html

    The key becomes where to toggle this parameter -- and whether it is incorporated into the OS X 10.4 AFP server.