2 min read June 28, 2013 at 8:08pm
This tutorial is going to outline the installation and configuration of vsftpd which is a secure and powerful FTP server for Linux based systems.
You will first want to install vsftpd via yum:
yum install vsftpd
After it’s installed, you’ll want to make some configuration changes.
First, you will need to stop vsftpd:
service vsftpd stop
Then edit the configuration file via nano:
You will want to configure the following settings:
Now you will need a username and login – so lets create it:
useradd -d /var/www/dir -s /usr/sbin/nologin ftpusername
Setup the password for the username you just created:
Remember, this user will be assigned access to directory so be sure to adjust this setting to your liking:
chown -R ftpusername /path/to/dir
chmod 775 /path/to/dir
Now you will want to create a userlist file via nano and then add the username:
And then add the username to the file:
Save and exit.
Configure the configuration file:
# the list of users to give access
# this list is on
# It is not a list of users to deny ftp access
Then make sure the following file looks like this:
If not, then you need to adjust it with the settings above.
Finally, you’re ready to fire things up and give it a shot.
service vsftpd start