Follow symlinks in ProFTPd

As a normal security precaution you would restrict your FTP users to their home directories with “DefaultRoot ~”.

But then you face a problem – how to follow symlinks to other parts of your file system.

The answer: mount them with the “bind” option!

For example, inside your user’s home directory do this:

  • mount –bind /media/sdb2/mydocs/archive /home/username/archive

Of course you have to check and adjust the file permissions as needed after that.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.