500 OOPS: cannot change directory問題

eymit發表於2012-08-15
Normal 0 false false false EN-US ZH-CN X-NONE Normal 0 false false false EN-US ZH-CN X-NONE

1.CentOS下面使用ftp時報一個錯500 OOPS

[oracle@sh01020165 o32g2]$ ftp -i 172.25.14.9

Connected to 172.25.14.9.

220 (vsFTPd 2.2.2)

530 Please login with USER and PASS.

530 Please login with USER and PASS.

KERBEROS_V4 rejected as an authentication type

Name (172.25.14.9:oracle): oracle2

331 Please specify the password.

Password:

500 OOPS: cannot change directory:/home/oracle2

Login failed.

ftp>

 

2. 懷疑為SELINUX開啟的原因

檢視目標伺服器的確是開啟的

[root@svr14-9 oradata]# getenforce

Enforcing

強制關閉SELINUX

[root@svr14-9 oradata]# setenforce 0

檢視是否生效

[root@svr14-9 oradata]# getenforce

Permissive

別忘記修改selinux配置檔案,使重啟後有效,修改後的檔案如下

[root@svr14-9 oradata]# vi /etc/selinux/config

SELINUX=disabled

SELINUXTYPE=targeted

 

 

3.重試後問題解決,沒有再報錯

oracle@sh01020165 o32g2]$ ftp -i 172.25.14.9

Connected to 172.25.14.9.

220 (vsFTPd 2.2.2)

530 Please login with USER and PASS.

530 Please login with USER and PASS.

KERBEROS_V4 rejected as an authentication type

Name (172.25.14.9:oracle): oracle2

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21605631/viewspace-741038/,如需轉載,請註明出處,否則將追究法律責任。

相關文章