Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently sing ProFTPd with mount points to "emulate" dir sym links. However, the problem is, what to do when you have file symlinks? I could hard link them, but this means replacing all of my symlinks, which is a giant PITA. So, is there a different FTP server that I could install instead which can resolve symlinks?

share|improve this question
FYI, after running across this question, I opened a ProFTPD feature request to handle this situation better. Cheers! – Castaglia Jan 21 at 0:02

I don't think that there is a FTP daemon which can circumvent the chroot(2) syscall. And if there was such a daemon, I wouldn't use it because it opens a lot of security holes.

What's the point chrooting the users anyway if you want them to access the whole file system (through manipulated symbolic links)?

share|improve this answer
Yeah I guess if they could manipulate the symlinks then it'd be a big security hole. Could you suggest any work-arounds, other than hard links? – nbolton Jul 11 '10 at 20:39
Depending on your actual file system layout and which files/directories you want to make available in the chroot environment you might have success with an overlay file system like AUFS ( – joschi Jul 12 '10 at 5:19

If you can organize the set of files to be shared to be on the same filesystem then you could do the following: create a directory, create hard links to each of the files you want to share in that directory, bind mount that directory somewhere into the chroot' jail's view of the filesystem. For files on a different filesystem simply repeat the above process. This does have the disadvantage of an extra step but that is the price of hard links. Once the files are visible to your chrooted FTP server then you can create symlinks to prettify things.

This is independent of the FTP server used. Every FTP server out there relies absolutely on the filesystem layer for file management. If there is one that doesn't, I'd recommend staying away from it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.