我最近在我的debian squeeze linode上安裝了proftp。它工作到目前爲止,但我現在面臨幾個問題。Debian/Proftp 550權限被拒絕
在諸如FileZilla的FTP客戶端中,我能夠無障礙地訪問服務器和下載文件,但上傳並不可行。嘗試結果550 test.txt: Permission denied
。
我也試圖直接從NetBeans下載/上傳,但NetBeans在這兩種情況下都報告550 permission denied
消息。下載文件時請看下面的結果。
除非在設置中指定子目錄,否則可以成功建立連接。
220 ProFTPD 1.3.3a Server (Debian) [::ffff:178.79.184.96]
USER userftp
331 Password required for userftp
PASS ******
230 User userftp logged in
TYPE I
200 Type set to I
CWD /site.co.uk/public_html
550 /site.co.uk/public_html: No such file or directory
CWD/
250 CWD command successful
CWD site.co.uk
550 site.co.uk: No such file or directory
MKD site.co.uk
550 gwerks.vegetav.co.uk: Permission denied
QUIT
221 Goodbye.
以下是附加到proftp.conf
文件:
#VALID LOGINS
<Limit LOGIN>
AllowUser userftp
DenyALL
</Limit>
<Directory /srv/www/>
Umask 022 022
AllowOverwrite on
<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD CWD>
AllowAll
</Limit>
</Directory>
嘗試是非常重要的更改權限'chmod -R 0775/var/www/your_folder /' 它適用於我 – 2011-12-29 03:08:20
這沒有幫助 –
嘗試'chown -R userftp:userftp/srv/www /'這兩個命令都解決了我的問題 –