- 论坛徽章:
- 0
|
症状:Vsftpd安装后默认配置 创建一个本地账户,无法访问。
原因:没有关掉iptables 和selinux
1 需要停掉iptables :
Chkconfig iptables off (禁掉随机启动)
service iptables stop (停掉服务)
2 关闭selinux
[root@localhost ~]# vi /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=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
默认模式为enforcing的将其改为disabled就可以了。(如果不关闭selinux的话,本人在配置过程中发现客户端连接不上)
以上面方式修改selinux后不要忘记重启。
3.reboot
备注:不关掉iptables 的做法以及详细配置vsftpd 参考以下文档:
回复 4# dengbao2001
|
|