vsftpd and chroot_local_user / issue with linked directory
Hey all,
I have my users when they log in, loggin into: Code:
/home/ftp/user Code:
/home/ftp/www/user_web Code:
[root@ftp1 user]$pwd Code:
chroot_local_user=YES What can I do to prevent users from seeing directories higher "cd ..", but at the same time, allow access to a SINGLE directory via the link?? THanks so much! |
Hi.
It's a short answer: You can't. If a user is chroot'ed, then they can only see files below the jail directory. Links which point outside the jail won't be traversable. It might be easier to reverse the link, so that the content exists in the jail, and is linked to from outside. Dave |
I was afraid of that.
Thanks :) |
There are two ways to work around your problem.
1) Use aufs to create a 'union' mount (http://aufs.sourceforge.net/) 2) Use a 'bind' mount (http://aplawrence.com/Linux/mount_bind.html) Personally I use an aufs implementation, though bind mounting should work. aufs allows filesystems to be overlayed on top of one another which is an easy way to combine the contents of multiple directories into one single directory. 'bind' mounting simply allows a directory to be mounted at another location in the filesystem. Both will work to accomodate your jail scenario. ::There is hope:: |
All times are GMT -5. The time now is 05:21 AM. |