ProFTPD,创建或修改文件时出现 550:操作不允许

ProFTPD,创建或修改文件时出现 550:操作不允许

我使用的是带有 PLESK Onyx 服务器的 centos 6.9。从昨天起,我的 ftp 服务就坏了。每次我想创建或编辑文件时,都会出现 550 错误。但当我想创建目录、更改权限、打开文件或删除文件时,它就可以正常工作。

我检查了组和密码文件(etc/group、etc/passwd)。但一切似乎都正常。我更改了子文件夹的权限并尝试创建文件,但也没有用。

希望有人能引导我走向正确的方向。

proftpd.conf:

#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFTPD"
#ServerType                     standalone
ServerType                      inetd
DefaultServer                   on

<Global>
DefaultRoot     ~               psacln
AllowOverwrite          on
PassivePorts 50000 60000
<IfModule mod_tls.c>
        # common settings for all virtual hosts
        TLSEngine on
        TLSRequired off

        TLSLog /var/log/plesk/ftp_tls.log

        TLSRSACertificateFile /usr/local/psa/admin/conf/httpsd.pem
        TLSRSACertificateKeyFile /usr/local/psa/admin/conf/httpsd.pem

        # Authenticate clients that want to use FTP over TLS?
        TLSVerifyClient off

        # Allow SSL/TLS renegotiations when the client requests them, but
        # do not force the renegotations.  Some clients do not support
        # SSL/TLS renegotiations; when mod_tls forces a renegotiation, these
        # clients will close the data connection, or there will be a timeout
        # on an idle data connection.
        TLSRenegotiate none

        # As of ProFTPD 1.3.3rc1, mod_tls only accepts SSL/TLS data connections
        # that reuse the SSL session of the control connection, as a security measure.
        # Unfortunately, there are some clients (e.g. curl) which do not reuse SSL sessions.
        TLSOptions NoSessionReuseRequired
</IfModule>
</Global>

DefaultTransferMode     binary
UseFtpUsers                     on

TimesGMT                        off
SetEnv TZ :/etc/localtime
# Port 21 is the standard FTP port.
Port                            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation
#with Anonymous FTP feature in PSA control panel.

#Include directive should point to place where FTP Virtual Hosts configurations
#preserved


# Primary log file mest be outside of system logrotate province

TransferLog /var/log/plesk/xferlog

#Change default group for new files and directories in vhosts dir to psacln

<Directory /var/www/vhosts>
        GroupOwner      psacln
</Directory>

# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd

IdentLookups off
UseReverseDNS off

AuthGroupFile   /etc/group

Include /etc/proftpd.d/*.conf
Include /etc/proftpd.include
#Scoreboard

更新 我认为这不是与 FTP 相关的问题。我认为问题来自上传保护。我检查了服务器,但没有运行 ClamAV。CentOS 上是否有任何默认防病毒服务在运行?

更新 发现问题,服务器上有一个漫游的 clamAv 配置文件,该文件包含在 proftpd conf 中。但由于 clamAv 已被删除,因此无法连接,因此每次编辑都失败。

幸运的是现在已经解决了。

答案1

发现问题了,服务器上有一个漫游的 clamAv 配置文件,包含在 proftpd conf 中。但由于 clamAv 已被删除,因此无法连接,因此每次编辑都失败

相关内容