

To quickly determine if your server was installed properly and is up and running, try to connect to the FTP server from your active shell, using the name anonymous and a blank password: ftp localhost Save the nf file then restart the vsftpd service for the changes to take effect: sudo service vsftpd restart


To begin your testing and make sure everything is working, start with the following settings for the above parameters: listen=YES chroot_local_user=YES restricts users to their home directory and is also commented out by default. Write_enable=YES is commented out by default, but removing the hash (#) allows files to be uploaded to the FTP server. Local_enable=YES allows any user account defined in the /etc/passwd file access to the FTP server and is generally how most FTP users will connect. anonymous_enable=NO disallows anonymous FTP users, which is generally preferred for security reasons but can be enabled for testing purposes. Listen=YES tells vsftpd to run as a standalone daemon (the simplest method for getting up and running). The critical settings seen above are outlined below:

# the possible risks in this before using chroot_local_user or # You may restrict local users to their home directories. # Uncomment this to enable any form of FTP write command. # Uncomment this to allow local users to log in. # Allow anonymous FTP? (Disabled by default) # Run standalone? vsftpd can run either from an inetd or as a standalone Open the /etc/nf file in your preferred text editor: nano /etc/nfĮdit the file so it resembles the following: # Example config file /etc/nf The next step is to change any configuration settings for vsftpd. Processing triggers for ureadahead (0.100.0-16). Processing triggers for man-db (2.6.7.1-1). 175600 files and directories currently installed.) Selecting previously unselected package vsftpd. The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 18 not upgraded.Īfter this operation, 361 kB of additional disk space will be used. Begin by SSHing into your server as root and use the apt-get command to install vsftpd: apt-get updateĪpt-get install vsftpd Reading package lists. While there are a variety of FTP server tools available for Linux, one of the most popular and mature options is vsftpd. This installation was performed on a Ubuntu 14.04 distribution system.
