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
)執行的參數應該是一樣的 為什麼前一種卻不能上傳。