Knowledgebase

Customize proftpd server

The tutorial below describes how to configure a proftpd server on our seedboxes installed from the „FTP Accounts” tab with custom configuration. By default all additional accounts have access to all your files under your downloads directory and only READ permission so they can't upload anything to your ftp.

To edit your proftpd configuration please login to your seedbox SSH, here is an article how to do this:

IMPORTANT! The directory which you want to grant access to must exist physically on the server, otherwise the user won't be able to log in.

Now your user will log in to the default path which you configured for him but he will be able to go to an upper path which is your downloads. To block such access you need to block users' access to your downloads path so that they can have access to your custom path only under your downloads.

type the following command via SSH:

nano ~/software/proftpd/etc/proftpd.conf

Now you need to find a similar line:

<Directory /yourhome/yourusername/downloads>

Edit this line to:

<Directory /yourhome/yourusername/downloads/*>

To save changes press F3 and ENTER to confirm, then to exit press F2.

To make changes in your configuration you need to restart your ftp server now. After a restart additional ftp accounts will have an access to your custom path without access to your downloads.

You can restrict access to different paths for each user. For example one user can have access to the ftpaccount1 directory under your downlaods and another user to ftpaccount2 directory. Each user can have different permissions as well.

Firstly edit the following file:

~/software/proftpd/etc/ftpd.passwd

and change the user access path as described above in „Changing directory path where users will have an access”