Skip to content

How To: Install Ubuntu FTP Server – vsftpd

by Jon on February 2nd, 2010

To install an ftp server on Ubuntu server use the following commands, then I have a sample configuration file to use with it.

apt-get install vsftpd

This will install the ftp server for you and then the configuration file will be located in /etc/vsftpd.conf

Here is the sample conf file I am using.

listen=YES
listen_port=221
anonymous_enable=NO
local_root=/var/ftpdirectory
pasv_min_port=222
pasv_max_port=224
local_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
idle_session_timeout=600
ftpd_banner=This server is for authorized users only.
secure_chroot_dir=/var/run/vsftpd
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

Now that the conf file is in place if you are using a firewall of any kind the ports you selected will need to be opened up, so I had to open TCP ports 221 through 224 in iptables.
Then to add a user use the following command.

useradd

Now just follow the prompts.

From → Linux

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: