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 .

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

2 Responses

  1. HawkEYE says:

    btw: the binary for kernel module file also available at http://namran.net/repository/xlinux

    Reply
  2. anonymous says:

    I wish it were so easy… no matter what I do, I get an immediate reboot when launching a custom kernel. No idea why.

    Reply

Anything to add?

X