I have a share on Lion Server, and a symlink pointing to a directory outside the share. The symlink is working properly when user is logged into the machine via ssh (so permissions are fine), but when accessing the filesystem via AFP or CIFS, the link is broken.

Is there a setting that allows to follow symlinks outside shared folders?

  • Did you try to share the specific file (the target of the symlink) directly? – nohillside Dec 21 '12 at 12:34
  • No, because I'd prefer to limit the number of shares on the server – CharlesB Dec 21 '12 at 12:38
  • Ah, wait, you have the symlink in a shared folder on the server and the symlink points to a physical file outside the share, correct? – nohillside Dec 21 '12 at 12:50
  • exactly (points to a folder but doesn't matter) – CharlesB Dec 21 '12 at 12:57
  • I don't think it is possible with CIFS (Windows Sharing) or NFS, because a symlink gives a hint on how to find the target file/folder, but since it is located outside the share it can't be found. You could try hard linking with ln -d but it didn't work for me (see man ln for details). Is it possible to share the folder as a WebDAV share? I guess it would then be possible to configure Apache to follow symlinks... (see superuser.com/questions/244245/…). – jaume Dec 21 '12 at 23:30

You must log in to answer this question.

Browse other questions tagged .