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

4 Responses

  1. goysar says:

    I m using centos, i tried ur installation step and gone fine but finally when i ran the command ‘service zm start’ my terminal says ‘bash: service: command not found’ wat might be the error. I want my web cam from mron to work.

    Reply
  2. namran says:

    have you become root first before issue
    with

    “su – ”

    “service zm start” ?

    can be also as ..

    “/sbin/service zm start”

    or
    “/etc/init.d/zm start”

    Reply
  3. umsrootqho says:

    hunfjcmph, ippbsesekz

    Reply

Anything to add?

X