Allow Chroot VSFTPD User External File Access
Scenario: FTP user is jailed to their home directory with chroot. FTP user needs to access an external directory (such as www).
Normally you would create a symbolic link in the user’s home directory.
ln -s /var/www/html/userdomain.com www
But for some reason, this just doesn’t work with VSFTPD. After fiddling with permissions unsuccessfully for a few minutes, I found a better way.
mkdir www
mount –bind /var/www/html/userdomain.com www
So you could either do it this way, or use PROFTPD.
About Benjamin Perove
Benjamin has been associated with computer technology starting from a very early age, and has contributed to the success of many businesses and enterprises since 2001. He loves to crush pow at Keystone, play acoustic guitar, climb rocks, and ascend mountains on his road bike. Benjamin is an Avalanche fan and currently resides in Boulder, Colorado.

Comments(6)


