You are not logged in.

#1 2010-05-06 21:31:06

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

vsftpd and virtual users - SOLVED!

I have followed the wiki to build my vsftpd server, which works fine with local users

However, I wanted to build the server with virtual users, and I have made everything as described in the wiki,
but it doesn't work - I got a 530 error - Login incorrect.

I think it should be a problem with the password database file, but how to solve it?

here's my vsftpd.conf:


CODE:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
#ftpd_banner=Welcome to blah FTP service.
chroot_local_user=YES
pam_service_name=ftp
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES

Last edited by scar (2010-05-07 05:43:33)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#2 2010-05-06 21:58:03

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: vsftpd and virtual users - SOLVED!

I can't see any problem with your vsftpd.conf, the same settings work for me. You haven't forgot some step?

- create the user virtual
- make some place of choice virtual's "home"
- adding a couple of necessary lines to file "ftp" in /etc/pam.d/ directory

Offline

#3 2010-05-06 22:17:28

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: vsftpd and virtual users - SOLVED!

I don't think so :

cat /etc/passwd | grep virtual
virtual:x:1002:1002::/srv/ftp:/bin/bash

ls -l /srv/
drwxr-xr-x 2 virtual virtual  4096 máj    6 22.20 ftp

cat /etc/pam.d/ftp
auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
crypt=hash account required /lib/security/pam_userdb.so db=/etc/vsftpd_login crypt=hash


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#4 2010-05-07 05:43:06

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: vsftpd and virtual users - SOLVED!

ok, solved - mistyped something:

/etc/pam.d/ftp

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

never user copy-paste in gnome-terminal and nano !!!!!!!!!!!


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

Board footer

Powered by FluxBB