Installed ProFTPd on CentOS 6 and found that users could not log in. The proftpd logs showed:
USER jonny (Login failed): Incorrect password.
The /var/log/secure log showed:
proftpd: PAM unable to dlopen(/lib64/security/pam_stack.so): /lib64/security/pam_stack.so: cannot open shared object file: No such file or directory
The solution is to replace the /etc/pam.d/proftpd file with the following (as per this post):
#%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
Thanks, but to change this file I get another problem:
proftpd: PAM unable to dlopen(/lib64/security/pam_fprintd.so): /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory
proftpd: PAM adding faulty module: /lib64/security/pam_fprintd.so
I appreciate any help. Thank you.
Braulio
Maybe you don’t have /lib64 – Only 64bit operating systems have that directory. Check with uname -a
Thank you for your post…this saved me after 4 hours of hell trying to figure this out on a virtualmin server that accidentally updated to an unsupported version of proftpd.
This was a solution to an annoying Login Incorrect issue, had to look in /var/log/secure then searched for the pam errors and lead to this blog.
THANK YOU for posting.
Thanks! This saved me a bunch of time trying to figure this out.
THANK YOU for posting this. I spent an hour trying to figure out what was going on here, even screwing around with PAM with no progress. Ugh.
Having spent a frustrating hour after virtualmin upgrades proftpd I put the error in my secure log in google. And found this blog.
Cut and pasted your settings and all solved! Many thanks saved me getting very frustrated.
Awesome, perfect copy & paste !! CentOS6.4, proftpd.x86_64 1.3.4a-.el6.rf@rpmforge
Thank you for posting this. As with everyone else it saved me hours of time trying to troubleshoot the issue.
Thank you, you save me a lot of time.
That saved me!
Thanks a ton.
Great, that solved (at least part of) my problem.
Authentication does work now for some accounts.
now i get this
proftpd: PAM adding faulty module: /lib64/security/pam_fprintd.so
just use this
authconfig –disablefingerprint –update
it worked for me
really greeeat.
i saved my time.