- 2010-818日
今天在做VSFTP实验时碰到如下问题:
C:\>ftp 192.168.0.231
Connected to 192.168.0.231
220 (vsFTPd 2.0.5)
User (192.168.0.231:(none)): frank
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/vftp
Login failed.
ftp> ls
500 OOPS: child died
Connection closed by remote host.
检查了好几遍配置,配置肯定没问题,提示是不能进入ftp目录,说明登陆已经成功,只是没有权限进入目录,查看了目录权限还是不行,换了个ftp目录也是同样的情况,总是提示500 OOPS: cannot change directory:/home/vftp最终还是上网找解决办法
解决方法:
在执行下面命令:
setsebool ftpd_disable_trans 1
service vsftpd restart这是SELinux的设置命令.
在不熟悉SELnux前,把SELinux关掉做实验会顺利一些。
转载请注明:
本文转自:http://www.liusuping.com/ubuntu-linux/linux-vsftp-500-OOPS.html
- 评论:(0)
- 引用通告
发表评论点击这里获取该日志的TrackBack引用地址