installation
Yum Install vsftpd
Start/restart/shutdown
/sbin/service vsftpd start/sbin/service vsftpd restart/sbin/service vsftpd stop
configuration file
/etc/vsftpd/vsftpd.conf
anonymous upload Download
Modify the configuration file to vsftpd.conf
anonymous_enable=yesanon_upload_enable=yesanon_mkdir_write_enable=Yesanon_umask= 022
Configure vsftpd.conf
anonymous_enable=NO #禁止匿名local_enable=YES #允许本地登录write_enable=YES #允许写, if you want to upload, you must llocal_umask=027#将上传文件的权限设置为:777-local_umaskanon_upload_enable=YES #允许虚拟用户和匿名用户上传anon_other_write_enable=YES #允许虚拟用户和匿名用户修改文件名和删除文件dirmessage_enable=YES xferlog_enable=YES #打开日志记录connect_from_port_20=Yesxferlog_file=/var/log/Vsftpd.log #日志存放位置xferlog_std_format=YES #标准日志格式idle_session_timeout= -#空闲连接超时data_connection_timeout= -Ftpd_banner=Welcome to chinarise FTP service #欢迎信息chroot_local_user=NO chroot_list_enable=yes# more than two rows of virtual users in their directory, no access to other directories, or directly with Chroot_local_user=YES Listen=yes #监听/Passive Mode Listen_port= +#监听端口
Chroot_list_file=/etc/vsftpd/vsftpd.chroot_list #虚拟用户名单保存在文件/etc/vsftpd/vsftpd.chroot_list
user_config_dir=/etc/vsftpd/vsftpd_user_conf #每个虚拟用户名的更加详细的培植保存在/etc/vsftpd/vsftpd_user_conf
I'm the dividing line of the king of the land Tiger.
CentOS installation FTP Server and configuration