Ask a question »

Installing an FTP server under Ubuntu

July 2015


Installing an FTP server under Ubuntu




Installation

  • To install the FTP server, type the following command in a terminal:
    • sudo aptitude install vsftpd

Configure the FTP server

  • The FTP server configuration is done by editing the /etc/vsftpd.conf file.
  • To edit this file, type the following command:
    • gksu gedit /etc/vsftpd.conf

Disable anonymous FTP

  • Change the line:
    • anonymous_enable=YES
  • to
    • anonymous_enable=NO

Allow local users to connect

  • Add:
    • local_enable=YES

This will allow users to make use the same login/password to access the FTP server.

Allow users to upload files

  • Add:
    • write_enable=YES 

Selecting the Interface

  • By default the FTP server will be available on all interfaces. If you want to restrict it only to your local network(10.0.0.x) add the line:
    • listen_address=10.0.0.1
  • Given that the LAN IP address of your FTP server is 10.0.0.1

Start FTP server

  • (Re)start the FTP server so that it takes into account the new configuration.
  • Type:
    • sudo /etc/init.d/vsftpd restart
For unlimited offline reading, you can download this article for free in PDF format:
Installing-an-ftp-server-under-ubuntu.pdf

See also

In the same category

Instalar un servidor FTP bajo Ubuntu
By Carlos-vialfa on November 3, 2009
Installer un serveur FTP sous Ubuntu
By sebsauvage on April 25, 2007
Instalar um servidor FTP no Ubuntu
By pintuda on December 24, 2009
Original article published by sebsauvage. Translated by jak58. - Latest update by deri58
This document entitled « Installing an FTP server under Ubuntu » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.