vsftpd
I am trying to setup vsftpd with virtual users. SO far I have followed the examples
given in the vsftpd documentation see
f*p://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.0.3/EXAMPLE/VIRTUAL_USERS/README
This is what I have:
vsftpd.conf:
anonymous_enable=NO
local_enable=YES
write_enable=YES
anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
chroot_local_user=YES
guest_enable=YES
guest_username=virtual
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
idle_session_timeout=600
data_connection_timeout=120
ascii_upload_enable=NO
ascii_download_enable=NO
nopriv_user=downloader
dirmessage_enable=YES
banner_file=/etc/vsftpd/vsftpd.banner
background=YES
listen=YES
ls_recurse_enable=NO
#Enables SSL
#ssl_enable=YES
#allow_anon_ssl=NO
#force_local_data_ssl=YES
#force_local_logins_ssl=NO
#ssl_tlsv1=YES
#ssl_sslv2=YES
#ssl_sslv3=YES
#rsa_cert_file=/etc/ssl/certs/vsftpd.pem
I have this in /etc/pam.d/ftp
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
and I have a db file with the logins and passwords in /etc/vsftpd/vsftpd_login.db
Whenever I try to login locally I get:
Mercury vsftpd # ftp localhost
Connected to localhost.
500 OOPS: cannot locate user entry:downloader
And attempting to login remotely I get:
Status: Connecting to 192.168.2.4 ...
Status: Connected with 192.168.2.4. Waiting for welcome message...
Response: 500 OOPS: cannot locate user entry:downloader
Response: 500 OOPS: child died
Error: Disconnected from server
Error: Unable to connect!
|