2018年4月24日 星期二

pure-ftp 553 Can't open that file: Permission denied

在mac環境下安裝ubuntu的虛擬機後,ubuntu再裝上docker。
docker上安裝好pure-ftp後,用FileZilla ftp登入,上傳mac檔案到虛擬機時碰到了如下錯誤:
553 Can't open that file: Permission denied

最好把ubuntu目錄的擁有者與群組改成和mac檔案上的使用者一樣,
假設檔案使用者為test,ubuntu的ftp目錄為ftpdir:
ubuntu下命令 sudo chown test:test ftpdir
至於docker上的ftp目錄,實測後不需修改。