Vsftpd权限等配置正确,报500,550解决方法


Vsftpd权限等配置正确,报500,550解决方法
 
本人在配置完VSFTPD,使用的过程中遇到了500 cannot create file 的报错
查了很多解答,都说是权限的问题  www.2cto.com  
我的FTP用户为 ftpuser
我为他建立了一个根目录 /home/ftp   并给他设置为所有者,并赋予755的权限
  chown -R ftpuser /home/ftp
  chmod 755 -R /home/ftp
所以我肯定不是权限的问题
后来我用ROOT用户登录FTP 又发现有550的报错,后来查550 发现可能是selinux启用的原因,关掉后就可以解决问题。具体如下:
  www.2cto.com  
vsftpd正常设置
但登陆后不能创建,也不能删除提示550错误
解决办法可以关掉selinux=disable
[root@host]# vi /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 - SELinux is fully disabled.
SELINUX=disabled
#把这里改成disable
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted
-------------------------------------------------------------------------
 
如果在想不重启系统的情况下关掉SELINUX,可以输入命令:
setenforce 0
 

相关内容

    暂无相关文章