vsftpd中遇到500 OOPS: cannot change directory的解決方案
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mac Iterm2 連結伺服器報:LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決方案Mac伺服器
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- 玩Deno遇到問題的解決方案
- 關於React Native報Cannot access ‘serviceOf‘的解決方案React Native
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- linux輸入yum後提示: -bash: /usr/bin/yum: No such file or directory的解決方案Linux
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- 關於Cannot resolve scoped service from root provider解決方案IDE
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- 解決IDEA Error:Output directory is not specifiedIdeaError
- gitbook no such file or directory 怎麼解決Git
- Composer 使用過程中遇到的問題和解決方案
- ps1 is not digitally signed. You cannot run this script解決方案Git
- git遇到問題safe.directoryGit
- 遇到的cannot find module 'xxx' 問題
- wepy+weappx開發小程式遇到的坑以及解決方案APP
- VS2019配置Opencv遇到的部分問題及解決方案OpenCV
- Go構建遇到cgo動態庫時解決方案Go
- JS中的非同步解決方案JS非同步
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- 解決cannot find module providing package或cannot find main modulePackageAI
- Windows下使用python庫 curses遇到錯誤訊息的解決方案WindowsPython
- 【面試】工作中遇到的難點及解決方案——人臉解鎖相機衝突問題面試
- 解決刪除Azure Active Directory的Enterprise Applications異常APP
- 遇到問題的解決方法
- TypeError: Descriptors cannot not be created directly問題的解決Error
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 使用.Net6中的System.Text.Json遇到幾個常見問題及解決方案JSON
- 開發中遇到的bug-Cannot set property ‘__VUE_DEVTOOLS_UID__‘ of nullVuedevUINull
- “ORA-28007: the password cannot be reused”解決
- 解決“su: cannot open session: Permission denied”Session
- Go 自定義日期時間格式解析解決方案 - 解決 `parsing time xx as xx: cannot parse xx as xx` 錯誤Go
- Java中的物件導向(OOPs)概念 - 四個主要概念Java物件OOP
- [解決方案]IIS配置後報錯404,500,502等系列問題
- vsftpd.conf 配置詳解FTP
- 在Flutter中嵌入Native元件的解決方案Flutter元件