Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-10-2004, 01:47 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Question VSFTPD - FC2 - Virtual User Trouble

I got some problems getting VSFTPD 2.0.1 working with virtual users... This is the case!

Background info:

I have had vsftpd version 1.2.1 install since I recently installed FC 2.
Now i started to configure the files and set it up for virtual users... which after an install of Berkley db 4.2 worked too... (before that I couldnt make the the db file needed). Even this little install made some struggling, cause it installed it self to /usr/local/... instead of just to /usr/... altho it worked after some fixing. So I made the db file and voila... everything worked!

Well now I found out that there is a newer version 2.0.1, so I downloaded it, did as the read me said. And installed it. First problem was it didnt start the new install with "service vsftpd start", it started the old one. But when i went to the sbin folder and started it from there it worked. So version 2.0.1 started instead... great I thought... I also reinstalled Berkley, because it was very disturbing I had to call the command with /usr/BerkleyDB-4.2/sbin/db_load instead of a simple db_load which it would of been if it had been installed to the correct folder. Anyhow i reinstalled it and now it was in the correct folder and no /usr/local crap...

Even the VSFTPD server was placed in wrong dirs by the install, so I decided to reinstall it too, and manually copy the folders needed to the correct dirs (as stated you easily could do in the install info) well said and done. Now I start the correct server trough service vsftpd start. Great!! It works now!

The Issue:

Well now the config stuff dont seem to work. I checked the config about one billion times and even used all the default configs and stuff form EXAMPLE/VIRTUAL_USERS/
still dont work, and the thing that doesnt work is this:

When connecting to my ftp none of the username / passwords written in the db file which pam checks works... I just get login denied. The second thing (think both these are connected to each other) is that I can still login with a local user, even tho its stated in the info about VSFTPD that this ISNT and SHOULDNT be possible when using

I believe it, because it didnt work using my old vsftpd and before i reinstalled everthing...

Well now i spent many many hours, checking through things, reinstalling things, and alot of reading, tho no soloution in sight... Help required!

So all help, kindly appreciated!
Old 11-10-2004, 02:15 PM   #2
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian
Posts: 133

Rep: Reputation: 18
I have the same problem on Gentoo i was told to uninstall pam, it didn't work as of what i've experienced ..
Old 02-26-2005, 06:13 AM   #3
LQ Newbie
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
If you did like me dezza, and followed the tutorial included in the EXAMPLE dirs;
then you probably have the same problem as I had...
Take a look, this might actually work!

Okay I been checking around the web for months now without finding any answers to this, the opposite tbh, I have found tons of questions about same problem, and well at last I found the soulotion by an accident when scrolling through all config files and command references. The funny thing is that this isnt mentioned anywhere at all!

This is the problem:
You name your FTP pam file to "ftp" when you follow the virtual user setup tutorial included in the vsftpd source.

But in your conf file you have this line by default:

Well, because we named it ftp, we basically change this to:

hope this helps everyone else that worked for a long time to find a soulotion.

Last edited by Emzer; 02-26-2005 at 06:19 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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
VSFTPD virtual user problem exalik Linux - Networking 1 07-26-2006 11:22 PM
vsftpd virtual user LinuxNoobs Linux - Software 1 05-20-2003 07:15 AM
vsftpd virtual user help zmerch Linux - Software 0 01-28-2003 07:54 PM
vsftpd virtual user setup Steave Linux - Software 2 12-29-2002 01:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration