vsftpd : Allowing access to folders outside home when “chroot_local_user=YES”

With ‘chroot_local_users=YES’ vsftpd locks a user to his/her home directory, but every now and then you have a few users who need access to more that one user’s home for some reason or other

Getting around chroot

For the record “ls -s /home/user1 /home/user2″ does not work. 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. Add it to rc.local so that its mounted on reboot

Voice your Comment