Skip to main content
← Back to all posts

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.

cd /home/user
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.

cd /home/user
mkdir www
mount --bind /var/www/html/userdomain.com www

So you could either do it this way, or use PROFTPD.

New posts, shipping stories, and nerdy links straight to your inbox

2× per month, pure signal, zero noise

Type to search blog posts