Unable to transfer files via FTP: Operation not permitted

Created:

2016-11-16 13:10:20 UTC

Modified:

2017-07-10 11:17:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to transfer files via FTP: Operation not permitted

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  • FTP connection works fine, however, file transferring is not possible:

    ftp> put test.txt
    local: test.txt remote: test.txt
    229 Entering Extended Passive Mode (|||8718|)
    150 Opening BINARY mode data connection for test.txt
    550 test.txt: Operation not permitted
  • The following messages can be found in /var/log/messages :

    proftpd[775597]: 127.0.0.1 (::1[::1]) - mod_clamav/0.14rc2: error: Cannot connect to Clamd (111): Connection refused
    proftpd[775597]: 127.0.0.1 (::1[::1]) - mod_clamav/0.14rc2: error: Cannot re-connect to Clamd (2): No such file or directory
    proftpd[775597]: 127.0.0.1 (::1[::1]) - notice: error closing '/test.txt': Operation not permitted
  • In /var/log/yum.log there are records as follows:

    # grep clam /var/log/yum.log
    Aug 18 14:17:20 Erased: clamd
    Aug 18 14:17:20 Erased: clamav
    Aug 18 14:17:23 Erased: clamav-db

Cause

An orphaned ClamAV configuration file /etc/proftpd.d/50-clamav.conf

Resolution

Remove the file /etc/proftpd.d/50-clamav.conf or move it to another location:

# mv /etc/proftpd.d/50-clamav.conf /root/50-clamav.conf_backup
Have more questions? Submit a request
Please sign in to leave a comment.