vsftp不能切换到家目录
原创
©著作权归作者所有:来自51CTO博客作者maibaicai的原创作品,请联系作者获取转载授权,否则将追究法律责任
vsftpd是linux/unix下常见的ftp服务软件,如果在使用中遇到下列错误信息: 500 OOPS: cannot change directory ..........
表怕,解决起来很简单,只需要在启动vsftpd服务前,执行:
[root@localhost ~]# getenforce 0
Permissive
然后再重启服务即可,例如:
C:\Documents and Settings\Administrator>ftp 192.168.10.100
Connected to 192.168.10.100.
220 (vsFTPd 2.0.5)
User (192.168.10.100:(none)):
oracle331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/oracle
Login failed.
切换至服务器端执行:
[root@localhost ~]# getenforce 0
Permissive
[root@jssln1 ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
客户端再次尝试通过ftp登陆:
C:\Documents and Settings\Administrator>ftp 192.168.10.100
Connected to 192.168.10.100.
220 (vsFTPd 2.0.5)
User (192.168.10.100:(none)): oracle
331 Please specify the password.
Password:
230 Login successful.