vsftpd是linux/unix下常见的ftp服务软件,如果在使用中遇到下列错误信息:
500 OOPS: cannot change directory ..........
表怕,解决起来很简单,只需要在启动vsftpd服务前,执行:setsebool ftpd_disable_trans 1,然后再重启服务即可,例如:
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:
500 OOPS: cannot change directory:/home/oracle
Login failed.切换至服务器端执行:
- [root@jssln1 ~]# setsebool ftpd_disable_trans 1
注:如果希望设置永久有效,在执行setsebool时附加 -p参数即可。
然后重新启动ftp服务:
[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.来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7607759/viewspace-614436/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7607759/viewspace-614436/