Breaking News
Loading...
Wednesday, July 31, 2013

Install and Configure VsFtpd on Linux CentOS 6.3

4:39 PM

Vsftpd stand for Very Secure FTP Daemon. Vsftpd not only just another popular FTP server for Unix/Linux systems, but vsftpd delivers excellent performance by consuming less memory. It’s running under xinetd and allows you run one process less because xinetd is shared among various other small services. For those webmaster or blogger who intend to run web server on Virtual Private Server or Dedicated Server, Vsftpd would be the best choice as beside easier to install, Vsftpd also can perform all that we expect from an FTP daemon while maintaining a higher level of security if proper configured. This article focuses and covers on the installation and configuration of the Vsftpd Ftp Server on linux CentOS 6.3 VPS or a dedicated server.

1. Installing vsftpd using yum command :

[root@howtolinux ~]# yum install vsftpd -y
Examples :
[root@howtolinux ~]# yum install vsftpd -y
Loaded plugins: fastestmirror, presto, priorities
Determining fastest mirrors
epel/metalink                                                                | 3.2 kB     00:00
 * base: centos.ipserverone.com
 * epel: mirrors.ispros.com.bd
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
base                                                                         | 3.7 kB     00:00
base/primary_db                                                              | 3.5 MB     00:58
epel                                                                         | 4.3 kB     00:00
epel/primary_db                                                              | 4.0 MB     01:19
extras                                                                       | 3.5 kB     00:00
extras/primary_db                                                            | 9.1 kB     00:00
updates                                                                      | 3.5 kB     00:00
updates/primary_db                                                           | 3.3 MB     00:53
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i686 0:2.2.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package               Arch                Version                        Repository           Size
====================================================================================================
Installing:
 vsftpd                i686                2.2.2-11.el6                   base                157 k

Transaction Summary
====================================================================================================
Install       1 Package(s)

Total download size: 157 k
Installed size: 344 k
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 157 k
vsftpd-2.2.2-11.el6.i686.rpm                                                 | 157 kB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : vsftpd-2.2.2-11.el6.i686                                                         1/1
  Verifying  : vsftpd-2.2.2-11.el6.i686                                                         1/1

Installed:
  vsftpd.i686 0:2.2.2-11.el6

Complete!

2. Makesure that xinetd has been installed :

[root@howtolinux ~]# rpm -qa xinetd
xinetd-2.3.14-35.el6_3.i686
If not installed, execute the following command :
[root@centos63 ~]# yum install xinetd -y

3. Make xinetd and Vsftpd daemon start at boot :

[root@howtolinux ~]# chkconfig vsftpd on
[root@howtolinux ~]# chkconfig xinetd on

4. It is recommended to do backup of your original configuration file, before do changes :

[root@howtolinux ~]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf-bak

5. Configure Vsftpd :

[root@howtolinux ~]# 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 CentOS6.3 FTP service.
#
b) Configure not allowed user. By default root account is not allowed to login the vsftpd server as it’s exist in /etc/vsftpd/ftpusers. To allow it, open /etc/vsftpd/ftpusers file and remove or comment out the line for user “root”. Users whose name are set in this file will not allowed to login from ftp.
[root@howtolinux ~]# 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, howtolinux:

C:\>ftp 192.168.2.54
Connected to 192.168.2.54.
220 Welcome to CentOS6.3 FTP service.
User (192.168.2.54:(none)): howtolinux
331 Please specify the password.
Password:
230 Login successful.
ftp>

0 comments:

Post a Comment

 
Toggle Footer