Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vsftpd virtual users -> pam problems after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leson
n00b
n00b


Joined: 24 Aug 2003
Posts: 8

PostPosted: Mon Feb 09, 2004 3:13 pm    Post subject: vsftpd virtual users -> pam problems after update Reply with quote

Hi all!

I just did an emere sync; emerge -u world which updated my pam from 0.75-r11 to 0.77 and pam-login from 3.11 to 3.14. Although updates are nice this one made vsftpd (v1.2.0-r1) authentication fail with the syslog message:

Code:
Feb  9 15:05:02 [vsftpd] PAM unable to dlopen(/lib/security/pam_userdb.so)
Feb  9 15:05:02 [vsftpd] PAM [dlerror: /lib/security/pam_userdb.so: undefined symbol: dbm_firstkey]
Feb  9 15:05:02 [vsftpd] PAM adding faulty module: /lib/security/pam_userdb.so


Any suggestions?

Regards,

Secano
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Mon Feb 09, 2004 3:21 pm    Post subject: Reply with quote

Have you tried revdep-rebuild?

IIRC pam included a new berkdb which may require linked apps against berkdb to be recompiled. vsftpd is one of them
Back to top
View user's profile Send private message
leson
n00b
n00b


Joined: 24 Aug 2003
Posts: 8

PostPosted: Mon Feb 09, 2004 4:22 pm    Post subject: Reply with quote

UberLord wrote:
Have you tried revdep-rebuild?

IIRC pam included a new berkdb which may require linked apps against berkdb to be recompiled. vsftpd is one of them


I did the revdep-rebuild but it only re-emerged a couple of java packages. I also re-emerged vsftpd manually and pam + pam-login but to no avail. :(
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Mon Feb 09, 2004 4:49 pm    Post subject: Reply with quote

What version of berkdb (db) do you have?
AFAIK the latest PAM requires 4.1.xxxxx

You may need to recreate the user database file.
Aside from that, I'm out of ideas :(
Back to top
View user's profile Send private message
leson
n00b
n00b


Joined: 24 Aug 2003
Posts: 8

PostPosted: Mon Feb 09, 2004 5:25 pm    Post subject: Reply with quote

UberLord wrote:
What version of berkdb (db) do you have?
AFAIK the latest PAM requires 4.1.xxxxx

You may need to recreate the user database file.
Aside from that, I'm out of ideas :(


Actually I recreated the user database with the last post. My berkdb is version > 4.1 so then I'm stuck I guess.. :(
Perhaps I should roll back the pam packages to previous versions?

This bug seems to be the culprit https://bugs.gentoo.org/show_bug.cgi?id=32631#c11
Back to top
View user's profile Send private message
starbecks
n00b
n00b


Joined: 30 Mar 2003
Posts: 45

PostPosted: Thu Feb 12, 2004 12:18 pm    Post subject: vsftp problem Reply with quote

I have the exact same problem.

I upgraded PAM and PAM-LOGIN and now users can not authenticate when logging into my vsftp server. This is a big problem.

So, leson, have you had any luck fixing this? I read the bugzilla link, but it does not look to be solved.

Does anybody have any insight?
Back to top
View user's profile Send private message
leson
n00b
n00b


Joined: 24 Aug 2003
Posts: 8

PostPosted: Fri Feb 13, 2004 12:29 am    Post subject: Re: vsftp problem Reply with quote

starbecks wrote:
I have the exact same problem.

I upgraded PAM and PAM-LOGIN and now users can not authenticate when logging into my vsftp server. This is a big problem.

So, leson, have you had any luck fixing this? I read the bugzilla link, but it does not look to be solved.

Does anybody have any insight?


No I haven't found any way to fix it. I tried to downgrade pam but with no luck. I suppose if you can't fix the bug by yourself one just have to wait for someone else to do it. :cry:
Back to top
View user's profile Send private message
sleepless.knight
n00b
n00b


Joined: 12 Nov 2003
Posts: 46
Location: Cambridgeshire, UK.

PostPosted: Fri Feb 13, 2004 12:59 am    Post subject: Reply with quote

I have a similar tale of woe :?. See https://forums.gentoo.org/viewtopic.php?t=135243&highlight=

My pam is now 0.77 (was 0.75-r11) and my pam-login is now 3.14 (was 3.11) after I did an emerge -uk world. Now only root can login to my system. Non-root users do not even appear to get to a shell. They login, and get bounced back to the login prompt immediately. I created a shell script and made it one users shell instead of /bin/bash, then attempted to login as that user, expecting to see output if we were getting as far as a shell - nothing - which makes me think it is an authentication problem.

I can login as root, and then su to any user, and that works fine.

Will try to revdep-rebuild pam and pam-login and post the results. If anyone has any better advice to offer, I'm all ears. :)
Back to top
View user's profile Send private message
Steffen
Apprentice
Apprentice


Joined: 14 Jul 2002
Posts: 159

PostPosted: Fri Feb 27, 2004 6:38 pm    Post subject: Reply with quote

Any news about the PAM & vsftpd issue?
Back to top
View user's profile Send private message
egolf
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2004
Posts: 116
Location: CH

PostPosted: Fri Feb 27, 2004 7:12 pm    Post subject: same problem (vsftpd pam) Reply with quote

Hi
I have the same problem:
Code:
vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so)
vsftpd: PAM [dlerror: /lib/security/pam_userdb.so: undefined symbol: dbm_firstkey]
vsftpd: PAM adding faulty module: /lib/security/pam_userdb.so
tried to:
1) revdep-rebuild (did'n change nothing)
2) reemerged db pam pam-login vsftp (did'n work)
Code:
[ebuild   R   ] sys-libs/db-4.1.25_p1-r3  -doc +java +tcltk  0 kB
[ebuild   R   ] sys-libs/pam-0.77  +berkdb +pwdb -(selinux)  0 kB
[ebuild   R   ] sys-apps/pam-login-3.14  +nls -(selinux)  0 kB
[ebuild   R   ] net-ftp/vsftpd-1.2.0-r1  +ipv6 +pam +tcpd  0 kB
3) revdep-rebuild -X db pam pam_login vsftpd (nothing new :()
Back to top
View user's profile Send private message
sleepless.knight
n00b
n00b


Joined: 12 Nov 2003
Posts: 46
Location: Cambridgeshire, UK.

PostPosted: Sat Feb 28, 2004 6:05 am    Post subject: Reply with quote

Sorry this is a bit off topic - my problem ultimately proved to be a broken Berkley DB, which was fixed by remerging PAM and PAM-login - neither of which appears to have helped anyone here.

:oops:
Back to top
View user's profile Send private message
joyeux
n00b
n00b


Joined: 18 Mar 2003
Posts: 11
Location: The Czech Republic

PostPosted: Thu Mar 11, 2004 12:14 am    Post subject: you must unmerge "db" first, then compile pam Reply with quote

pam_userdb.so is compiled wrong way, ./configure setups it to use libndbm instead of db4. The easiest way is

$ emerge unmerge db

to unmerge all dbX. Then

$ emerge pam

pam now compiles with db4 (which is bundled with pam).
Then

$ emerge db

and create userdb database using db4.1_load

in /etc/pam.d/vsftpd don't use extension .db in path;
try ftp login and then look at syslog output.

after three days it works!!!
_________________
joyeux :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum