FTP: 500 OOPS: cannot change directory

来源:互联网 发布:top域名注册3元便宜 编辑:程序博客网 时间:2024/05/01 06:25

连接Linux服务器,报下面的错误:

ftp> user root

331 Please specify the password.
密码:
500 OOPS: cannot change directory:/root
500 OOPS: priv_sock_get_cmd
远程主机关闭连接。




用户(192.168.150.128:(none)): oracle
31 Please specify the password.
密码:
00 OOPS: cannot change directory:/home/oracle

00 OOPS: priv_sock_get_cmd



上述问题是由于服务开启了防火墙或selinux,简单的做法就是将其关闭。

关闭selinux

vi /etc/selinux/config

修改为:

SELINUX=disabled


关闭防火墙:

#service iptables stop

#chkconfig iptables off


再重启Linux服务器。