Knowledge Base

An archive of my personal knowledge base.

Install FTP Server on Linux Debian (vsftpd)

Cristian Sulea

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable.

Install

apt-get install vsftpd
mkdir -p /var/ftp
mkdir -p /var/ftp/incoming
chmod 777 /var/ftp/incoming
echo -e "Anonymous users can only write in \"incoming\" folder.\n" > /var/ftp/README.txt
mv /etc/vsftpd.conf /etc/vsftpd.conf.original
nano /etc/vsftpd.conf
vsftpd.conf
listen=YES

write_enable=YES

local_enable=NO
local_root=/home
chroot_local_user=YES

anonymous_enable=YES
anon_root=/var/ftp
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_umask=000

use_localtime=YES

Don't forget to restart the server.

service vsftpd restart

vsftpd over SSL

ssl_enable=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
rsa_cert_file=/etc/vsftpd/vsftpd.pem
force_local_data_ssl=YES

Resources

Share on Twitter