• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question ProFTPD

Attila Zarka

New Pleskian
Hi,

i use plesk 17.0.17 #Update 4 and centOS 7.2.1511.

I cannot connect via ftp

the secure log says:

proftpd: pam_listfile(proftpd:auth): Couldn't open /etc/ftpusers
proftpd[3623]: 0.0.0.0 (xx.xx.xx) - USER xyz: Login successful.
proftpd: pam_unix(proftpd:session): session opened for user xyz by (uid=0)
proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
proftpd: pam_systemd(proftpd:session): Failed to connect to system bus: No such file or directory

Filezilla says:

Status: Resolving address of www.xyz
Status: Connecting to xx.xx.xx
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xx,xx,xx).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

I changed the /etc/pam.d/proftpd like in https://kb.plesk.com/en/125519 without success.

Thanks for some hints!
 
I seem to have a same problem and "plesk repair ftp" didn't work. What other things should I be looking for.

- FTP (port 21) worked fine before. The only change that i did was to the sshd and nothing else.
- Users unable to access FTP, keeps failing at "LIST"

Thanks
 
Last edited:
Hello,

Please check the passive port range assigned in /etc/proftpd.conf
Example: id range is (49152 -65534)

And Enable passive port range in iptables:
==
iptables -I INPUT 2 -p tcp --dport 49152:65534 -j ACCEPT
service iptables save
==

Thanks
 
Back
Top