'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.


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
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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