VSFTPD virtual users pam problem
Hey Everyone..!
First time setting up an ftp server..
Basicly I wanted to be able to give usernames and passes to some of my mates, without system accounts being given. For tghis i have come to beleive that virtualousers is the way to go..
Anyways I hvae used the documentation to try to get this working.. ie built the database and so on.. ut whenever i try to use one of the virtual users i get a pam error telling me that the user/pass is invalid...
here are my configs..
cat /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
pam_service_name=vsftpd
write_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
background=NO
listen=NO
listen_port=21
pasv_min_port=30000
pasv_max_port=30999
root@Nakamura1700XP etc #
Can anyone help?
Im using the default users.txt file for the input...
tom
foo
fred
bar
And getting the errors.. in /var/log/messages
root@Nakamura1700XP etc # tail /var/log/messages
Jul 19 21:27:06 Nakamura1700XP xinetd[10644]: START: ftp pid=12439 from=127.0.0.1
Jul 19 21:27:06 Nakamura1700XP vsftpd(pam_unix)[12439]: check pass; user unknown
Jul 19 21:27:06 Nakamura1700XP vsftpd(pam_unix)[12439]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1
Jul 19 21:27:09 Nakamura1700XP xinetd[10644]: EXIT: ftp pid=12439 duration=3(sec)
/etc/xinetd.d/vsftpd
# vsftpd is the secure FTP server.
service ftp
{
disable = no
only_from = 0.0.0.0
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
per_source = 1
instances = 3
banner_fail = /etc/vsftpd/vsftpd.busy_banner
log_on_success += PID HOST DURATION
log_on_failure += HOST
nice = 10
}
and using db4.1 command..
root@Nakamura1700XP vsftpd # db4.1_load -T -t hash -f logins.txt /etc/vsftpd_login.db
Help?
Last edited by Cmdr_K00n; 07-19-2004 at 07:32 AM.
|