Debian / Proftp 550 权限被拒绝
我最近在我的 Debian squeeze linode 上安装了 proftp。到目前为止它有效,但我现在面临几个问题。
在 FileZilla 等 FTP 客户端中,我可以毫无问题地访问服务器并下载文件,但无法上传。尝试结果为 550 test.txt:权限被拒绝
。
我还尝试直接从 NetBeans 下载/上传,但 NetBeans 在这两种情况下都会报告 550 权限被拒绝
消息。下载文件时请参见下面的结果。
除非在设置中指定子目录,否则可以成功建立连接。
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>
I've recently installed proftp on my debian squeeze linode. It works so far but I'm facing several issues now.
In an FTP client such as FileZilla, I am able to access the server and download files without problems, but upload isn't prossible. Trying results in 550 test.txt: Permission denied
.
I'm also trying to download/upload directly from NetBeans, but NetBeans reports a 550 permission denied
message in both cases. See below the result when downloading a file.
Connection can be established successfully unless sub directories are specified in the settings.
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.
The following is appended to the proftp.conf
file:
#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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
或者就我而言:
Or in my case:
解决此问题的最佳方法是:
myftpUser
:您的 ftp 用户或任何您喜欢使用它的用户apache
:apacheapache
是默认用户组,如果它安装在由 apache 自动创建的 Linux 中,则不要仅使用
myftpUser:myftpUserGroup
,这一点非常重要,因为如果您使用此方法,服务器会给您HTTP 错误500
best way for this problem is :
myftpUser
: your ftp user or any user that you like use itapache
: apacheapache
is default user group, if it's installed in Linux automatically created by apacheit is very important that you don't use just
myftpUser:myftpUserGroup
, because if you use this method server will give youHTTP Error 500
我刚刚找到了这个问题的解决方案
在 /etc/proftpd/proftpd.conf 中找到以下行
关闭 IPv6 支持,这在仅 IPv4 的机器上很烦人。
使用 IPv6 打开
将其切换为“关闭”
重新启动服务器
I have just found a solution to this problem
Find the following line in /etc/proftpd/proftpd.conf
Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on
Switch this to 'off'
Restart the server