本人在使用CentOS时,配置vsftpd,第一次上传文件遇到了500\550 的报错。
后来我用root用户登录FTP,又发现有550的报错,之后查资料发现可能是selinux启用的原因,关掉后就可以解决问题。具体操作如下:
[lzq@localhost ~]$ cat /etc/selinux/config
# 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
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
如果在想不重启系统的情况下关掉selinux,可以输入命令:
setenforce 0