vsftpd : Allowing access to folders outside home when “chroot_local_user=YES”
vsftpd is tested and proven. It works! It’s secure and performs. With ‘chroot_local_users=YES’ it locks a user to his/her home directory, but in a corporate environment there are always a few that need access to more that one user’s home for some reason or other. I found myself in the same pit today while setting up a new FTP server that would not hang ever now and then. Yes, the old one ran on M$
Getting around chroot
For the record “ls -s /home/user1 /home/user2″ does not work. The chroot will not allow you to get out !!
Starting for kernel 2.4.Something a filesystem could be mounted on multiple mount points using the –bind option. hence:
$sudo mount --bind /home/user1/ /home/user2/user1
That’s it, log in as user2 and you should be able to see user1’s home. Pretty neat huh ?
Don’t forget to add it to rc.local so that its mounted on ever reboot automatically









