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

8 Responses

  1. Arsento says:

    I liked it. So much useful material. I read with great interest.

    Reply
  2. aLe aRdHo says:

    Nice Articel, thanks for sharing 😉

    Reply
  3. watches says:

    OK. Bless you on your mission. watches

    Reply
  4. Suresh says:

    Thanks & All the Best.

    Reply
  5. jimmy choo outlet online says:

    Your article is very nice

    Reply
  6. Davein says:

    SO FUN ARTIAL

    Reply
  7. burberry bags says:

    ack Obama. Younger voters and liberals, too, but to a lesser extent. All are important Democratic constituencies that helped him win the White House in 2008 and whose support he’ll need to keep it next year. An analysis of Associated Press-GfK polls, includin

    Reply
  8. moncler says:

    I added it to favorites and i’ll be your constant reader.

    Reply

Leave a Reply

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