linux中ftp提示--553 Could not create file (絕對有用)__linux

來源:互聯網
上載者:User
linux中ftp提示--553 Could not create file (絕對有用)
提示553 Could not create file,把這個目錄的屬主和許可權都設定好,還是報這個錯誤,那仔細在網上查查,問題解決如下:
命令:  ftp> put    back_log.txt   /home/user001/
 這樣會報錯:553 Could not create file
需要改成: ftp> put    back_log.txt   /home/user001/back_log.txt  可以用echo命令把這條命令列印出來。

錯誤提示
 
目前的目錄是/home
 ftp> !ls -l
 ......
 -rwxr-xr-x   1 root    root       146 Aug 16 03:30 hosts
 -rw-r--r--   1 root    root        46 Aug 16 02:09 host.txt
 -rw-r--r--   1 root    root        51 Aug 15 07:14 logins.txt
 .....
 ftp> put host.txt
 local: host.txt remote: host.txt
 227 Entering Passive Mode (127,0,0,1,62,184)
 150 Ok to send data.
 226 File receive OK.
 46 bytes sent in 0.014 seconds (3.2 Kbytes/s)
 ftp> put hosts
 local: hosts remote: hosts
 227 Entering Passive Mode (127,0,0,1,174,59)
 150 Ok to send data.
 226 File receive OK.
 146 bytes sent in 0.046 seconds (3.1 Kbytes/s)
 ftp> put /home/hosts
 local: /home/hosts remote: /home/hosts
 227 Entering Passive Mode (127,0,0,1,232,15)
 553 Could not create file.
 ftp>
 問題:ftp> put /home/hosts 與 ftp> put hosts (目前的目錄是/home
 )執行的參數應該是一樣的 為什麼前一種卻不能上傳。
 
碰到這種問題我們要先要分析原因,大概如
 
1.考慮是不是selinux的原因 把selinux禁用試試
 2.說不定ftp的檔案夾確實沒有寫入權限,確認一下該目錄許可權
 3.設定檔裡有write_enable=YES嗎
 
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.