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

'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a file, instead of a folder. He's using FTP and I want a folder that will behave like all his other folders, except it links to a separate folder. Is there a reason why my symlinks all show up as files? Thanks.

share|improve this question

I think what you want here, is to bind mount the target directory inside the jail of the user. You can't symlink out of a jail. Look at this, for instance:

mount --bind /media/sdb2/mydocs/archive /home/username/archive
share|improve this answer
Which directory is the one I'm linking to? – user183479 Jan 27 '14 at 18:59
wait... I'm stupid – user183479 Jan 27 '14 at 19:04
@user183479: Shouldn't you be giving us this information? – Iain Jan 27 '14 at 19:04

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.