|
CentOS Linux Server Guide |
CentOS Linux FTP Server |
||||||||
Setup FTP Sever (VSFTPD)
Setting vsftpd just involved a few simple steps. First of all, we must check if the vsftpd already installed at our system. If your system already installed vftpd, by entering the "rpm -qa | grep vsftpd" command, you should see the version and the package name installed as below.
Step1 : Install vsftpd package
If there is no package vsftpd package installed.
we can either run the vsftpd installation
(Option A) via CentOS installation media as below
(option B) via installing the vsftpd packager from internet using "yum install command". The following "yum -y install" means assume that the answer to any question which would be asked during yum installation operation
Step2 : Start the vsftp daemon/service First we start the vsftpd daemon using "service vsftpd start" command". Next we want the vsftpd service/daemon started in level 3,4, and 5 by using "chkconfig vsftpd on". You can check the services "chkconfig --list" and ftp port status using "netstat -anp" command.
Below example, show the vsftpd is started and port is licensing at 21
you can do further test, just to test if the vstpd service is start and running. Let us stop the iptables for a while. Take note that we are using "root" to access ftp and it returen permission denied. why? because root account is not allowd to login vsftpd b y default.
Now, let us try on another machine (a Windows 7 machine). The following example, we are using jane account to login and showing her current directory using "pwd" (default directory for user is /home/user)
Step3 : Configure vsftpd configuration file (/etc/vsftpd/vsftpd.conf) Now, let us customize the setting for vsftpd service. The configuration of vsftpd is stored at /etc/vsftpd/vsftpd.conf.
Most are default settings are perfectly configured. We are only need to focus 5 lines of configuration here. The configuration format for vsftpd.conf is very simple. It look this:-
configuration category = Value [YES or NO]
Basically, these are the areas that you need to focus on the vsftpd configuration, please read further on security chapter to tighten down vsftpd services.
|
||||||||
|
Copyright 2011 http://www.1a-centosserver.com All Rights Reserved All trademarks are the property of their respective owners. Contact Us | Terms of Use | Privacy Policy |