CentOS安装和配置VSFTP
环境:CentOS6.0+vsFTP 0:2.2.2-6.el6_2.1?
安装vsftp pam db4
#yum install vsftpd y
通过setup对系统服务及防火墙进行配置,然后reboot系统
或者使用命令将vsftp配置为系统服务
chkconfig --level 35 vsftpd on
?
配置vsftpd.conf
更改配置前最好备份一下然后再改
#vim /etc/vsftpd/vsftpd.conf
?
使用系统用户登录FTP
#useradd -d /home -s /sbin/nologin test
#passwd test
?
需要将SELinux关闭,否则无法连接
1、关闭SELINUX
#vim /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#?????? enforcing – SELinux security policy is enforced.
#?????? permissive – SELinux prints warnings instead of enforcing.
#?????? disabled – No SELinux policy is loaded.
#SELINUX=enforcing?
SELINUX=distable???
#SELINUX=enforcing 修改成SELINUX=distable
# SELINUXTYPE= can take one of these two values:
#?????? targeted – Targeted processes are protected,
#?????? mls – Multi Level Security protection.
SELINUXTYPE=targeted
2.重启