In the previous time study encountered many problems, there is no time to record. This article is about Linux CentOS deployment of FTP server. A Web server, in addition to allowing the site to run also requires FTP. directly into the subject
Demo Environment
Linux CentOS 6.2 x64 +VSFTPD
First, log into your system, remember to use the root account
Second, the installation
#yum Install vsftpd-y/y is indicated when agreeing to install
Third, open the service
#service vsftpd Restart/Restart VSFTPD service The first time you turn on the service will have a red tip, do not care. The second reboot will have two green OK.
So the FTP server is deployed
The following are the optimization aspects of
The configuration file for the VSFTPD server is: vi/etc/vsftpd/vsftpd.conf
-----------------------------
1. #vi/etc/vsftpd/vsftpd.conf/Edit vsftpd configuration file
2,/chroot_local_user=yes/Enter the editing state www.111cn.net Press/enter Chroot_local_user=yes for retrieval
3, the #chroot_local_user=yes of the # removed (can be edited by i)
4, Service vsftpd restart
The above three actions are for FTP to prevent users from returning to the previous level of directory permissions.
5, new user #/usr/sbin/adduser-d/webserver/web000-g ftp-s/sbin/nologin ftp000
/FTP000 is the new FTP user name
/webserver/web000 is the directory address where ftp000 is going.
6, Set password #passwd ftp000/Set password, password can right click Copy
7, plus permission #chmod 777/webserver/web000