LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-30-2003, 04:49 PM   #1
mdkelly069
Member
 
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:
http://www.linux-corner.net/linux/services/ftp.html (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
mdkelly
 
Old 11-30-2003, 08:01 PM   #2
mdkelly069
Member
 
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

mdkelly
 
Old 12-03-2003, 10:15 AM   #3
mdkelly069
Member
 
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.

Cheers
mdkelly
 
Old 09-22-2004, 11:07 PM   #4
mossy
Member
 
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-22-2004 at 11:09 PM.
 
  


Reply


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 12:00 PM
vsftpd pam authentication mikeseal Linux - Networking 5 03-14-2010 05:33 PM
VSFTPD virtual users pam problem Cmdr_K00n Linux - Networking 2 10-19-2007 01:44 AM
Vsftpd and PAM ispnepal Linux - Networking 0 06-11-2004 06:48 AM
VSFTPD virtual user login using pam.d problem exalik Linux - Networking 3 11-07-2003 04:29 PM


All times are GMT -5. The time now is 11:49 PM.

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