LINUX

Install VSFTPD on Debian

Want to install an ftp server on a Debian box with chrooted users (machine local users), you can accomplish this task by doing the following :

  • Install VSFTPD:

sudo apt-get install vsftpd

  • Edit the config file /etc/vsftpd.conf:

listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome To TOC FTP Server.
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
pasv_min_port=2121
pasv_max_port=2221
chroot_local_user=YES
allow_writeable_chroot=YES
chroot_list_enable=NO

  • Restart vsftpd server:

/etc/init.d/vsftpd restart

That’s it.

Leave a Reply

Your email address will not be published. Required fields are marked *