You are not logged in.

#1 2009-07-25 13:18:05

Tg
Member
Registered: 2008-04-23
Posts: 35

vsftpd: login incorrect ?

Hi,

I tried to make a ftp server at home using this guide (http://wiki.archlinux.org/index.php/Ver … FTP_Daemon) , but when I tried to login, I got "530 Login incorrect." whenever I tried to login.

Here  is my vsftp.conf I followed the "PAM with "virtual users" config. I already double check the username in it so I don't think I had typo in it. I coudn't login with either my username or virtual username ( anonymous was fine though, when I changed option to enable that)

anonymous_enable=NO
local_enable=YES
write_enable=YES
tcp_wrappers=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
listen=NO
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES

Anybody know where is the problem ? thanks in advance...

Last edited by Tg (2009-07-25 13:22:12)

Offline

#2 2009-08-27 09:44:29

Tg
Member
Registered: 2008-04-23
Posts: 35

Re: vsftpd: login incorrect ?

bump... still had the problem

Offline

#3 2009-08-28 20:11:40

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: vsftpd: login incorrect ?

I just followed the instructions and setup vsftpd (without xinetd) and the virtual users are able to login no problem. Our configs are the same (except for LISTEN=yes and no tcp_wrappers in mine), so I would check permissions on the virtual user home directory. Mine are 755, user virtual, group virtual.

Also check /var/log/vsftpd.log for any errors.

Offline

#4 2009-08-28 20:28:57

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: vsftpd: login incorrect ?

FYI: with guest_enable=YES, you can't login as anyone /but/ guest_username.

i'd change listen to YES and also, if using tcp wrappers you'll need 'vsftpd: ALL' in /etc/hosts.allow (or a specific ip/range).  a while back, i followed our wiki to set this up and it worked fine, so i would reread that a little more closely just to be sure you didnt mess up a step.

Offline

#5 2009-09-01 06:50:52

Tg
Member
Registered: 2008-04-23
Posts: 35

Re: vsftpd: login incorrect ?

^
I followed wiki and read everything but it didn't work. Just yesterday, I added  "pam_service_name=vsftpd" to vsftpd.conf and everything work fine. Now I can login with normal user, but I still can't login as virtual user.

Also, I run vsftpd through xinetd so I use listen=NO


neddie_seagoon: Thanks, I'll try that later.

Last edited by Tg (2009-09-01 06:53:06)

Offline

#6 2010-02-01 14:42:54

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: vsftpd: login incorrect ?

I want to use vsftpd without xinetd to use virtual users, but:

500 OOPS: could not bind listening IPv4 socket

Can I change it in some way?

Offline

#7 2010-02-03 15:31:35

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: vsftpd: login incorrect ?

Ok. I have the same. I deleted xinetd and configured as:

anonymous_enable=NO
local_enable=YES
write_enable=YES
tcp_wrappers=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
listen=YES
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES

And anyway:

530 Login incorrect

I used to change guest_username to real user from login.txt, but it didn't help.
I have no idea. May somebody explain me what's wrong?

Offline

Board footer

Powered by FluxBB