How to Install vsftpd ftp server
Installing vsftpd
"vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution."
vsftpd Home
This tutorial shows how to install vsftpd ftp server on your VPS/Dedicated Server.
Quickly test it's not already installed!
rpm -qa | grep vsftpd
Download a copy
First download a copy of vsftpd in RPM form. This can be attained at http://www.rpmfind.net/linux/rpm2html/search.php?query=vsftpd (no RPMS are avalible directly from vsftpd)
Upload vsftpd to your server
login to your provided server control and upload vsftpd to the /usr/ directory of your server.
Alternativley you can login through SSH and download vsftpd directly to your server with the following code:
cd /usr
wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/vsftpd-2.0.5-12.el5.src.rpm
(url of download may change, this url was tested 10/11/2008)
Install vsftpd
Login via SSH and enter the following code:
cd /usr
rpm -Uvh vsftpd-2.0.5-12.el5.src.rpm
Follow instructions
vsftpd install will guide you throgh the next few steps
Login
Finaly you will want to disable users from navigating outside of their allocated directory.
To do this we edit the vsftpd config file via SSH:
# Edit the config file
vi /etc/vsftpd/vsftpd.conf
# Edit or insert mode
i
# Insert or make the following line active
chroot_local_users="YES"
# Stop editing
Esc key
# Save and quit the editor
:wq
#restart the service
/etc/init.d/vsftpd restart
Create a User and Test
Login to Webmin and navigate to: System >> Users and Groups. Select "add new user" and fill in the username, password and group (users). You can come back to the other settings later. Now test this user via your ftp software.
Comment
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sakuiwe1/public_html/articles/how_to_install_vsftpd/index.php on line 116
