You are not logged in.
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
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
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
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