Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

'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

1 Answer 1

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 at 18:59
    
wait... I'm stupid –  user183479 Jan 27 at 19:04
    
@user183479: Shouldn't you be giving us this information? –  Iain Jan 27 at 19:04

Your Answer

 
discard

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.