- blog.up-link.ro - https://blog.up-link.ro -

How To Set Up a FTP server with ProFTPD in Ubuntu

File Transfer Protocol (FTP) is a network protocol used to exchange and manipulate files over a TCP/IP-based network. FTP is built on a client-server architecture and utilizes separate control and data connections between the client and server applications.

ProFTPD is a high-performance and scalable FTP server written from scratch, with a focus toward simplicity, security, and ease of configuration.

ProFTPD Features:

1. Install ProFTPD Server in Ubuntu

To install ProFTPD in Ubuntu use the following command:

# sudo apt-get install proftpd

This will start the installation this time it will ask one question you want to run proftp server from inetd or standalone here select standalone and press enter after this installation will be completed.

2. Configuring ProFTPD Server

By default the configuration file is located under /etc/proftpd.conf

If you want to check the default proftpd.conf file check here.

We are going to change the basic configuration for proftp server. This includes security configuration also.

Now you have to edit /etc/proftpd.conf using vi or any other editor and you need to change the following Directives or add the following directives for proftp server configuration.

# sudo vi /etc/proftpd.conf

Change the following directives

ServerName — Configure the name displayed

ServerName “proftpd server”

ServerIdent — Set the message displayed on connect

ServerIdent on "Welcome to proftp server"

UseReverseDNS — Toggle rDNS lookups

UseReverseDNS off

IdentLookups — Toggle ident lookups

IdentLookups off

DefaultRoot — Sets default chroot directory

DefaultRoot ~

RequireValidShell -- Allow connections based on /etc/shells

RequireValidShell off

MaxClients — Limits the number of users that can connect

DenyFilter -- Regular expression of command arguments to be blocked

DenyFilter \*.*/

Maxclients 30

MaxClientsPerHost — Limits the connections per client machine

MaxClientsPerHost 50

After adding these directives you have to restart the proftpd.

# sudo /etc/init.d/proftpd restart

Now your Basic server configuration is ready.

By default users can FTP in to their own home directories only.

To perform a syntax check of your proftpd.conf file use the following command

# sudo proftpd -td5

3. ProFTP Client Installation

If you want to use commnd line ftp client you need to install the ftp package:

# sudo apt-get install ftp