Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vsftpd virtual users on RH 9.0

0 views
Skip to first unread message

ifconfig

unread,
Jun 23, 2003, 3:38:16 AM6/23/03
to
Hi,all
I follow exactly the documents in the example directory of the Vsftpd src rpm.
Here is what I did:
1) logins.txt:
tom
foo
vivian
password

2) Make login.db
db_load -T -t hash -f /root/logins.txt /etc/vsftpd/vsftpd_login.db

3)Modify the file's permission:

chmod 600 /etc/vsftpd/vsftpd_login.db

4)Create a PAM file which uses your new database
/etc/pam.d/ftp:

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

5)Set up the location of the files for the virtual users:
useradd -d /home/ftpsite virtual
ls -ld /home/ftpsite
(which should give):
drwx------ 3 virtual virtual 4096 Jul 30 00:39 /home/ftpsite

6)Create /etc/vsftpd/vsftpd.conf config 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=10021
pasv_min_port=30000
pasv_max_port=30999

7) start the daemon:
vsftpd /etc/vsftpd/vsftpd.conf &

8)ftp localhost 10021

Then whatever account I offer, if always failed on authtencation the user.

So anyone here can help me? Any help is appreciated!

0 new messages