vsftpd 550 Create directory operation failed 错误

来源:互联网 发布:ubuntu find 查找文件 编辑:程序博客网 时间:2024/05/17 01:29

在RHEL5系统安装好后,使用系统默认安装的vsftp,用户连接后创建文件时提示“550 Create directory operation failed”错误,在google上查了一会,找到了以下三步解决方案:)

解决方案 1:

1、# sestatus -b | grep ftp

显示如下信息:

allow_ftpd_anon_write                  off
allow_ftpd_full_access                 off
allow_ftpd_use_cifs                    off
allow_ftpd_use_nfs                     off
allow_tftp_anon_write                  off
ftp_home_dir                           off
ftpd_connect_db                        off
ftpd_disable_trans                     off
ftpd_is_daemon                         on
httpd_enable_ftp_server                off
tftpd_disable_trans                    off

 

只要将ftpd_disable_trans                     off修改为ftpd_disable_trans                     on后,vsftp就OK了,具体的修改命令如下:

2、#setsebool -P ftpd_disable_trans on
修改后重启vsftp

3、#/etc/init.d/vsftpd restart

 

再次试试vsftp,一切OK;


解决方案 2:

ftpuser登录ftp后上传文件或新建目录,如果出现“550 create directory operation failed

SELinux(Security-Enhanced Linux----是美国国家安全局对于强制访问控制的实现, 是Linux 上最杰出的新安全子系统.)安装机制搞的鬼.只要disable SELinux就可以了.

PS: 关闭SELinux方法
[root@CenOS ~]# vim /etc/selinux/config
将 SELINUX=XXX -->XXX 代表级别
改为
SELINUX=disabled
重启就OK了!



0 0
原创粉丝点击