ProFTPd CentOS 6: PAM unable to dlopen /lib64/security/pam_stack.so

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

 

17 Responses to “ProFTPd CentOS 6: PAM unable to dlopen /lib64/security/pam_stack.so”

  1. Reader

    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

    Reply
    • jonny

      Maybe you don’t have /lib64 – Only 64bit operating systems have that directory. Check with uname -a

      Reply
  2. Damian

    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.

    Reply
  3. Mansoor

    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.

    Reply
  4. Damon

    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.

    Reply
  5. Alan

    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.

    Reply
  6. Roger Crom

    Thank you for posting this. As with everyone else it saved me hours of time trying to troubleshoot the issue.

    Reply

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">