• 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.

Issue FTP listing directory hanging. Log: Couldn't open /etc/ftpusers

KevinM

New Pleskian
Hi everyone, my Plesk Web Panel been working perfectly since install. All of the sudden (maybe after a Plesk update), a client informed me they could not FTP to their account. I proceeded to try with my account and the same result.

The logs show a successful user login:
Nov 28 06:39:55 pleskcp proftpd: pam_unix(proftpd:session): session opened for user kevixxx by (uid=0)
Nov 28 06:39:55 pleskcp proftpd[32144]: 127.0.0.1 (70.211.3.65[70.211.3.65]) - USER kevixxx: Login successful.


The FTP client just hangs and times out.

The proftpd Config
file has the following
.

#%PAM-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so

Any suggestions? Thanks.
 
Try to replace file /etc/pam.d/proftpd with following content:

#%PAM-1.0M-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
#session include system-auth
session required pam_loginuid.so

and resatrt xinetd service.
 
Thanks, I commented out that line and restarted xinetd. Same results as above. Any other solution's?

#session include system-auth
 
I did get this message in the log file after the timeout.

Nov 28 07:15:31 pleskcp proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
 
I was able to get in by changing the Security Policy in Plesk CP.

Not sure if this was the best option.

x6zhBit.jpg
 
Back
Top