VSFTP in CentOS 64-bit : PAM [error: /lib/security/pam_userdb.so: wrong ELF class: ELFCLASS32]

After setting up the vsftp to use PAM as auth.

Somehow having the following error appeared in

tail -f /var/log/secure
Sep 21 09:47:45 g-server vsftpd: PAM [error: /lib/security/pam_userdb.so: wrong ELF class: ELFCLASS32]

and resulting user can’t login to ftp service at all.

Apparently is because the system is 64-bit..
so the library is sitting somewhere else… correction is as below


session optional pam_keyinit.so force revoke
# 32-bit
#auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users
#account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users
# 64-bit
auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users
account required /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_users

http://www.cyberciti.biz/tips/rhel-fedora-centos-vsftpd-installation.html
it much easier to setup because it come bundled with redhat / centos .

Related Post

3 Responses

  1. HawkEYE says:

    I got better one after a few minute..
    by adding this two line before line 602 (/usr/share/system-config-network/netconfpkg/gui/maindialog.py)


    if (not isinstance (host.Hostname, str)):
    continue

    now it works like charms again.. hehe.. 😎

    Reply
  2. UncleOp says:

    This was helpful. Summary: if the /etc/hosts file is not well-formed, the python script doesn’t handle it well. In my case, somehow a long entry that was commented out got “line wrapped”, leaving some uncommented garbage on the next line. Fixing the hosts file or adding the above patch “worked”. It seems that some complaint to the user should be generated in such a case, though.

    Reply
    • HawkEYE says:

      @UncleOp , Glad it help.. thanks for dropping by..

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *