vsftpd 500 OOPS: cannot change directory问题

今天在配置ftp时,所有配置完毕后,,启动vsftpd,通过用户登陆ftp,居然报错:

C:\>ftp 10.10.1.239

Connected to 10.10.1.239

220 (vsFTPd 2.0.5)

User (10.10.1.239:(none)): xaftp

331 Please specify the password.

Password:

500 OOPS: cannot change directory:/home/xaftp

Login failed.

ftp> ls

500 OOPS: child died

Connection closed by remote host.

觉得这个 问题很奇怪,配置肯定没问题,总是提示500 OOPS: cannot change directory:/home/xaftp

解决方法:

在终端输入命令:

setsebool ftpd_disable_trans 1

service vsftpd restart

就OK了!

其 实这是SELinux的设置命令.

其实 man 一下setsebool也知道了:

NAME

setsebool - set SELinux boolean value

在不熟悉SELnux前,把SELinux关掉也可以的。有时间研究 下SELinux。

在想用SELinux但是又不熟悉的情况下可以把SELinux设置成Permissive,表示SELinux规则启 动,但只是把违规的记录到log中。

本文出自 “技术成就梦想” 博客,请务必保留此出处 http://ixdba.blog.51cto.com/2895551/526103

时间: 2024-08-03 19:32:47

vsftpd 500 OOPS: cannot change directory问题的相关文章

apache-vsftpd虚拟账户出现500 OOPS: cannot change directory

问题描述 vsftpd虚拟账户出现500 OOPS: cannot change directory 1.宿主用户如果是apache,ftp所有虚拟账户目录(权限用户是apache)不起作用,出现500 OOPS: cannot change directory:/home/apache2.宿主用户改成root,ftp所有虚拟账户目录起作用,但是上传文件是宿主,web用户apache无法访问.3.selinux已经设置成disabled 解决方案 vsftpd出现"Response: 500 O

vsftpd中FTP登陆500 OOPS: cannot change directory:/home/ithov错误解决方法

CetnOS中服务器端已经使用yum安装好vsftpd,使用windows 7系统进行连接测试 C:\Users\Administrator>ftp 192.168.1.6 连接到 192.168.1.6. 220 (vsFTPd 2.2.2) 用户(192.168.1.50:(none)): ithov 331 Please specify the password. 密码: 500 OOPS: cannot change directory:/home/ithov 500 OOPS: chi

解决linux下vsftp 500 OOPS: cannot change directory:/home/ 办法

安装好vsftp软件后,链接ftp登陆后提示这样的错误 500 OOPS: cannot change directory:/home/ 原因是CentOS系统安装了SELinux,因为默认下是没有开启FTP的支持,所以访问时都被阻止了. 解决办法 //查看SELinux设置 # getsebool -a|grep ftp ftpd_disable_trans –> off 或者 ftp_home_dir–>off //使用setsebool命令开启 # setsebool ftpd_disa

vsftpd登录时提示“vsftpd 500 OOPS: chroot”的问题

http://www.linuxquestions.org/questions/linux-networking-3/ftp-500-oops-cannot-change-directory-432558/ 于是知道是selinux的问题,它有一个叫做"Allow ftp to read/write in the user home directories" 的选项. 使用如下命令 /usr/sbin/setsebool -P ftp_home_dir 1 打开选项,重启服务器,登录,

解决500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp的问题

今天在使用centos vsftpd服务时,使用ftp工具进行连接,突然出现以下错误情况: C:\Users\Administrator>ftp 192.168.1.6 连接到 192.168.1.6. 500 OOPS: vsftpd: cannot locate user specified in 'ftp_userhttp://www.aliyun.com/zixun/aggregation/11696.html">name':ftp 远程主机关闭连接. 原来,由于进行了安全设

解决方法 500 OOPS: vsftpd: refusing to run with writable root inside chroot()

问题: 编译了最新版本的vsftp,出现"500 OOPS: vsftpd: refusing to run with writable root inside chroot ()"错误 解决方法: #vi /etc/vsftpd.conf (或者是在/etc/vsftpd/vsftpd.conf,总之知道自己服务器的配置文件) 添加 allow_writeable_chroot=YES 保存退出 service vsftpd restart 重启vsftp服务,即可正常登录

vsftpd FTP 500 OOPS: child died 错误

问题状态 客户端IP连接时提示错误 命令: LIST 响应: 425 Security: Bad IP connecting. www.111cn.net 错误: 读取目录列表失败响应: 500 OOPS: close 响应: 500 OOPS: child died 错误: 连接被服务器关闭 修改vsftpd服务端配置文件 vi /etc/vsftpd/vsftpd.conf 增加下面行,重启服务即可 pasv_promiscuous=YES 解决办法二,如果上面办法还是解决不了我们可以尝试如

连接ftp提示 500 OOPS: could not bind listening IPv4 socket

登陆本地端的ftp时,出现下列登陆的错误 #ftp localhost Connected to localhost. 500 OOPS: could not bind listening IPv4 socket 检查vsftpd状态,可知已启用,如下所示: #chkconfig –list vsftpd xinetd based services: vsftpd:             on Suse Linux vsftpd服务默认是在xinetd模式下运行,检查/etc/vsftpd.c

vsftp服务器连接500 OOPS: setuid错误

一.详细问题: 我在用ftp IP 地址登录FTP服务器时,系统提示我输入用户名和密码,可是仍然提示:500 OOPS: child died. Connection closed by remote host. 服务器端是用的vsftp,开始以为是SELinux导致的问题,确认了一下SELinux已经关闭,百度了一圈,没结果.各种方法都不行. 从字面意思上理解好像是登陆用户的uid有问题,查了一下好像也没发下什么问题. 后来转到国外一个网站,找到了线索:是因为用户最多可开启的程序数受到了限制,