Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We just upgraded Ubuntu Server 10.10 to 11.04. After this upgrade, it seems Vsftpd with pam_userdb logins no longer work. I was investigating this and it seems /lib/security/pam_userdb.so is missing.

This is very strange, and even if I do sudo apt-get install --reinstall libpam-modules it is still missing.

Any idea what is going on? Is this a known bug or is there something wrong on our end?

P.S. Vsftpd with userdb logins was working fine with at least 3 previous versions of Ubuntu, now this 11.04 upgrade seems to have broken it.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

packages.u.c tells us that pam_userdb.so exists in libpam-modules in architecture dependent paths. As a quick workaround, you can install a compatibility symlink:

ln -s /lib/*-linux-gnu/security/pam_userdb.so /lib/security/pam_userdb.so

To solve the problem for real, you need to determine why vsftpd/pam uses the wrong path to lookup the modules. Check for non-upgraded packages or hung processes first. Since all modules in libpam-modules are located in the arch-specific directory I would point to vsftpd in the first place, since other parts of your system seem to work fine with the new location.

P.S.: Don't forget to remove the symlink if you don't need it anymore.

share|improve this answer
    
Thanks for the reply! pam_userdb.so indeed exists in /lib/i386-linux-gnu/security/pam_userdb.so. It would have been a good idea to update /etc/pam.d/vsftpd to look the pam_userdb.so in that location. But I actually migrated logins to libpam-pwdfile format. I was in a bit hurry to get ftp logins up and running, so I did a quick login credential backend migration. –  Andr May 2 '11 at 13:55
add comment

THanks for the help!!! it works for me when i change the path of the pam_userdb.so file in

/etc/pam.d/vsftpd from /lib/security/pam_userdb.so

to /lib/i386-linux-gnu/security/pam_userdb.so

it works fine whit the current users, but the only detail is when i try to create new virtual users, vsftpd don't recognize them

do you have a solution for this?

thanks

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.