Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ 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
up vote 1 down vote accepted

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

ln -s /lib/*-linux-gnu/security/ /lib/security/

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! indeed exists in /lib/i386-linux-gnu/security/ It would have been a good idea to update /etc/pam.d/vsftpd to look the 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

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

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

to /lib/i386-linux-gnu/security/

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?


share|improve this answer

Your Answer


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.