Vsftpd stands for Very Secure FTP Daemon. Vsftpd is not just another popular Unix / Linux FTP Server, but vsftpd delivering outstanding performance by taking less memory. It is running under xinetd and allows you run one process less because xinetd is shared among various other small services. For those webmasters or blogger who intend to run web server on Virtual Private Server (VPS) or Dedicated Server, Vsftpd would be the best choice. It is easy to install and can perform all that we expect from an FTP daemon while maintaining a higher level of security if configured properly. This article focuses on and covers the installation and configuration of the FTP server Vsftpd on CentOS Linux VPS.
1. Installing Linux FTP Server, vsftpd using yum command :
# yum install vsftpd -y
2. Makesure that xinetd has been installed :
# rpm -qa xinetd
If not installed, execute the following command :
# yum install xinetd -y
3. Make xinetd and Vsftpd daemon start at boot :
# chkconfig vsftpd on # chkconfig xinetd on
4. It is recommended to do backup of your original configuration file, before do changes :
# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf-bak
5. Configure Vsftpd :
# vi /etc/vsftpd/vsftpd.conf
a) Uncomment ftpd_banner and customize the login banner string as below :
# You may fully customise the login banner string: ftpd_banner=Welcome to Linux FTP service. #
b) This step is to configure not allowed users. By default root account is not allowed to login the vsftpd server as it’s existed on /etc/vsftpd/ftpusers. To allow it, open /etc/vsftpd/ftpusers files and remove or comment on the line of a user “root”. Users whose name are set in this file will not allow to login from ftp.
# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody
6. Test root login from windows command prompt at client PC using user, ehowstuff :
C:\>ftp 192.168.2.54 Connected to 192.168.2.54. 220 Welcome to Linux CentOS FTP service. User (192.168.2.54:(none)): ehowstuff 331 Please specify the password. Password: 230 Login successful. ftp>
If you encounter any issues when setting up linux ftp server, you can put a few questions in the comments below.
Credit : www.unixmen.com