Unable to connect via ftp: Operation not permitted

Created:

2016-12-12 03:42:49 UTC

Modified:

2017-08-08 13:11:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to connect via ftp: Operation not permitted

Applicable to:

  • Plesk for Linux

Symptoms

Unable to connect to FTP server with the following error:

   ftp example.com 21
Connected to example.com ().
421 Service not available, remote server has closed connection

The following error occurs in /var/log/syslog :

    Oct 27 14:01:09 server xinetd[227675]: START: ftp pid=242575 from=91.204.25.6
Oct 27 14:01:09 server proftpd[242575]: processing configuration directory '/etc/proftpd.d'
Oct 27 14:01:09 server proftpd[242575]: 127.0.0.1 - error opening scoreboard: Operation not permitted
Oct 27 14:01:09 server xinetd[227675]: EXIT: ftp status=0 pid=242575 duration=0(sec)

Cause

Scoreboard file is absent or corrupted.

Resolution

    

  1. Connect to the server using SSH.
  2. Find the location of scoreboard file using the following command:
    # grep -ir scoreboard /etc/proftpd*

    /etc/proftpd.conf:ScoreboardFile /var/run/proftpd/scoreboard
  3. Clean the file from the previous step:

    # > /var/run/proftpd/scoreboard

Have more questions? Submit a request
Please sign in to leave a comment.