vsftpd中遇到500 OOPS: cannot change directory的解決方案

junsansi發表於2009-09-11

  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.
  ok,問題解決:)

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

相關文章