Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-30-2003, 05:49 PM   #1
Registered: Oct 2003
Posts: 43

Rep: Reputation: 15
vsftpd + pam + virtual users - Pam cannot load database file.

Hi all,

I know this is something that has probably been beaten to death, but I just cannot get it working.

I have followed this tutorial to the letter: (great site by the way) but I am still faced with a serious issue. When I try to log in with the account I have created using the steps at the above site it just says
"Invalid username and password" and will not let me log in.

When I check the log in /var/log/messages it states that pam cannot open the database.

The vsftpd.log states the I tried to log in but login has failed.

I am using RedHat 9 (updated) which has version 4 of the db_load app, and I am using vsftpd-1.2.1 that I compiled from source. I was thinking that using version four could be the problem, but I am concerned about installing version 3 as I do not know what it or installing any of its dependant files will do to my system. Yes I am pretty much of a n00b at this level of Linux.

The service is running and I am connecting to the correct IP address. I did find this exact problem in another thread, but the poster was directed back to the above web page and no solution was posted to the forum.

I thank you for any and all suggestions
Old 11-30-2003, 09:01 PM   #2
Registered: Oct 2003
Posts: 43

Original Poster
Rep: Reputation: 15
working sort of

Hi all,

okay it is working, except connections from the localhost are refused

Here is what I did:

1) wiped out vsftpd and started from scratch
2) re-installed vsftpd
3) made vsftpd.conf according to the webpage listed earlier
4) grabbed version 3 of db_load (tar.gz)
5) created my pam database using version 3 0f db_load
6) created all necessary folders and files according to above web site
7) removed the xinetd files pertaining to vsftpd
8) started vsftpd
9) logged in from another machine as localhost connections are still refused
10) was happy because it worked

I am not sure what changed other than using version 3 of db_load, but it is working now.

Now onto the rest of the set up

Old 12-03-2003, 11:15 AM   #3
Registered: Oct 2003
Posts: 43

Original Poster
Rep: Reputation: 15
latest update

hi again all,

Just wanting to update this incase anyone else has the same problems with a similar setup.

The problem with the database file was not the use of db4, it was the use of kwrite to create the text file that I was converting to the database file.

I ran into another issue, not with the ftp, but another project I was working on and for some reason the text file created by kwrite was being rejected. I pull out my eye-teeth and moved to vim, created the same file it was accepted without question.

This got me curious so I redid my text file for the pam database used by vsftpd. It worked no problem.

I am happy to say that my ftp sevrver is running smoothly behind my firewall/router using port forwarding with dynamic dns service from no-ip/com. Next step is to get the no-ip update tool running on my linux machine.

Old 09-23-2004, 12:07 AM   #4
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
What command did you use to db it in order for vsftpd to accept it?

Last edited by mossy; 09-23-2004 at 12:09 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to enable BOTH virtual & local vsftpd logins with PAM? quasidynamic Linux - Software 3 08-12-2010 01:00 PM
vsftpd pam authentication mikeseal Linux - Networking 5 03-14-2010 06:33 PM
VSFTPD virtual users pam problem Cmdr_K00n Linux - Networking 2 10-19-2007 02:44 AM
Vsftpd and PAM ispnepal Linux - Networking 0 06-11-2004 07:48 AM
VSFTPD virtual user login using pam.d problem exalik Linux - Networking 3 11-07-2003 05:29 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration