Felarin
2008-05-24, 07:24 PM CDT
Hi all,
I'm facing an interesting problem.
I've setup vsftp, db_config and pam for use with virtual users.
This is my /etc/vsftpd.conf file.
anonymous_enable=NO
local_enable=YES
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
listen=YES
listen_port=19500
pasv_min_port=50000
pasv_max_port=50999
xferlog_enable=YES
dual_log_enable=YES
hide_ids=YES
use_localtime=YES
write_enable=NO
max_login_fails=5
anon_max_rate=10000
local_max_rate=10000
max_clients=6
max_per_ip=2
banner_file=/etc/vsftpd/banner
pam_service_name=vsftp
This is my pam vsftp file.
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftp_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftp_login
The /etc/vsftpd/vsftp_login location is valid, that's the db i created with db_config
[root@Ragnarok ~]# ls -l /etc/vsftpd/
total 36
-rw-r--r-- 1 root root 303 2008-05-24 10:30 banner
-rw------- 1 root root 125 2008-04-01 05:22 ftpusers
-rw------- 1 root root 361 2008-04-01 05:22 user_list
-rw------- 1 root root 538 2008-05-25 09:02 vsftpd.conf
-rwxr--r-- 1 root root 338 2008-04-01 05:22 vsftpd_conf_migrate.sh
-rw------- 1 root root 4474 2008-05-24 10:14 vsftpd.conf.old
-rw------- 1 root root 12288 2008-05-25 09:07 vsftp_login
It's been chmod with 600.
When i try to connect, it fails to allow my user to authenticate and this appears in /var/log/secure
user_lookup: could not open database `/etc/vsftpd/vsftp_login': No such file or directory
I suspect it's because of the ` and ' at the beginning and end of that path but that's not added in by me. Is this a bug?
I'm facing an interesting problem.
I've setup vsftp, db_config and pam for use with virtual users.
This is my /etc/vsftpd.conf file.
anonymous_enable=NO
local_enable=YES
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
listen=YES
listen_port=19500
pasv_min_port=50000
pasv_max_port=50999
xferlog_enable=YES
dual_log_enable=YES
hide_ids=YES
use_localtime=YES
write_enable=NO
max_login_fails=5
anon_max_rate=10000
local_max_rate=10000
max_clients=6
max_per_ip=2
banner_file=/etc/vsftpd/banner
pam_service_name=vsftp
This is my pam vsftp file.
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftp_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftp_login
The /etc/vsftpd/vsftp_login location is valid, that's the db i created with db_config
[root@Ragnarok ~]# ls -l /etc/vsftpd/
total 36
-rw-r--r-- 1 root root 303 2008-05-24 10:30 banner
-rw------- 1 root root 125 2008-04-01 05:22 ftpusers
-rw------- 1 root root 361 2008-04-01 05:22 user_list
-rw------- 1 root root 538 2008-05-25 09:02 vsftpd.conf
-rwxr--r-- 1 root root 338 2008-04-01 05:22 vsftpd_conf_migrate.sh
-rw------- 1 root root 4474 2008-05-24 10:14 vsftpd.conf.old
-rw------- 1 root root 12288 2008-05-25 09:07 vsftp_login
It's been chmod with 600.
When i try to connect, it fails to allow my user to authenticate and this appears in /var/log/secure
user_lookup: could not open database `/etc/vsftpd/vsftp_login': No such file or directory
I suspect it's because of the ` and ' at the beginning and end of that path but that's not added in by me. Is this a bug?