LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-08-2003, 04:09 AM   #1
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
Installation vsftpd - Virtual Users


Hi all,

i have a problem with the installation of vsftpd-1.1.3 .

I compiled and installed the files without a problem and i can access the ftp-server with a normal userlogin.

But i want to use the virtual user access, as described in EXAMPLES/VIRTUAL_USERS .

I do the steps in this documentation exactly (without the port-commands), but it seems the vsftpd-server doesn't know the virtual user "tom" .

Error-Message : Tue 8 Apr 09:46:00 2003 [pid 15480] [tom] FAIL LOGIN: Client ...

There is no problem to login as a "real" user with a login in the /etc/passwd (for instance: user virtual).

The files (logins.txt -> vsftpd_login ; /etc/pam.d/ftp (vsftpd); vsftpd.conf) are the same like in the EXAMPLE/VIRTUAL USER Directory.

The pam-libraries exist. I created the password-file with the program db2_load (Berkely-DB 4.0.14-64).


Anyone an idea, why it doesn't work ?



with kind regards
Yoss
 
Old 04-10-2003, 10:06 AM   #2
laduj
LQ Newbie
 
Registered: Apr 2003
Location: Atlanta, GA
Posts: 2

Rep: Reputation: 0
Suggestions

Yoss,

First off, I'm a newbie as well. I just got vsftpd running last night, and am still having a few problems with virtual users, but have been able to log in.

First thing to try... are you using xinetd? If so, have you tried restarting it?

Next... you say you took out the port commands. I'm assuming that you mean the passive ports:

pasv_min_port=30000
pasv_max_port=30999

I took these out as well. If you also removed the listen port:

listen=YES
listen_port=10021

put it back. You don't have to use port 10021, but you will need to specify a port.

If that's the case, update your vsftpd.conf file, and then restart xinetd.

Try logging in, ftp localhost <port number specified in conf>
then try the tom ID with the foo password.

Hope this helps, and if I get any further with my setup, I'll post an addendum.

-Laduj
 
Old 04-11-2003, 12:51 AM   #3
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Hi Laduj,

thanks for your suggestions.

vsftpd works on my machine as the standalone version (LISTEN=YES). I took out only the passive portcommands.

But i will try it today with xinetd. Maybe this works with this configuration ...

I will write a posting, if i tested it.



with kind regards
Yoss
 
Old 04-11-2003, 03:04 AM   #4
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
No, it doesn't work .

@Laduj

can you post your /etc/pam.d/ftp - file?

Which version of BerkelyDB do you use?


Yoss
 
Old 04-12-2003, 12:19 PM   #5
laduj
LQ Newbie
 
Registered: Apr 2003
Location: Atlanta, GA
Posts: 2

Rep: Reputation: 0
Yoss,

Sorry the xinetd suggestion didn't work.

Here is my /etc/pam.d/ftp file:

auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd_login

I am running version db4-4.0.14 of BerkeleyDB.

Hope this helps, let me know if you need anything else.

Laduj.
 
Old 04-15-2003, 02:42 AM   #6
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Hi laduj,


yesterday i tried several things, but nothing helps....

It's frustating, there is no logfile entry, no hint, why it doesn't work ...

Thanks for your help. If i have a new idea, i will post it...

with kind regards
Yoss
 
Old 07-10-2003, 04:12 PM   #7
malrich
LQ Newbie
 
Registered: Jul 2003
Location: UK - Milton Keynes
Distribution: Fedora Core 1
Posts: 5

Rep: Reputation: 0
I had vsftpd working with xinetd, but when I set up virtual users, I could only get it working when not going through xinetd.

Could it be that virtual users and xinetd are just mutually exclusive ?

Has anyone been able to use both at the same time ?
 
Old 07-11-2003, 03:00 AM   #8
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Hi malrich,

it's interesting, i my configuration virtual users works only with xinetd.

I use a Suse-rpm-package of vsftpd.
I tried several times to compile vsftpd from the source code but it doesnt work on my machine.

regards
Yoss
 
  


Reply



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 06:29 AM
vsftpd setup with virtual users markus1982 Linux - Networking 21 11-04-2004 06:38 AM
vsftpd and virtual users chrull Linux - Software 0 05-14-2004 05:09 PM
vsftpd and virtual users poweroff Linux - General 0 02-26-2004 07:04 AM
vsftpd and virtual users JeffV Linux - Software 2 11-14-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration