Debian / Proftp 550 权限被拒绝

发布于 2024-12-10 08:13:36 字数 1066 浏览 0 评论 0原文

我最近在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

说谎友 2024-12-17 08:13:36
chown -R (FTPUSER) /(path)/(to_your_ftp)/

或者就我而言:

chown -R wordpress /home/wordpress/public_html
chown -R (FTPUSER) /(path)/(to_your_ftp)/

Or in my case:

chown -R wordpress /home/wordpress/public_html
亢潮 2024-12-17 08:13:36

解决此问题的最佳方法是:

chown -R myftpUser:apache /srv/www/

myftpUser :您的 ftp 用户或任何您喜欢使用它的用户

apache :apache

apache 是默认用户组,如果它安装在由 apache 自动创建的 Linux 中,

则不要仅使用 myftpUser:myftpUserGroup ,这一点非常重要,因为如果您使用此方法,服务器会给您 HTTP 错误500

best way for this problem is :

chown -R myftpUser:apache /srv/www/

myftpUser : your ftp user or any user that you like use it

apache : apache

apache is default user group, if it's installed in Linux automatically created by apache

it is very important that you don't use just myftpUser:myftpUserGroup , because if you use this method server will give you HTTP Error 500

回眸一遍 2024-12-17 08:13:36

我刚刚找到了这个问题的解决方案

在 /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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文