I took over vsftpd in Gentoo today as the current maintainer (rajiv) has not got the time for it anymore.
As such I've closed 5 bugs, bumped to 2.0.3 and will close a few more tomorrow 
This is all because recent proftpd builds have really annoyed me. Strangely, vsftpd took just 1 hour to setup after working out how to host virtual sites. Not too shaby!
Comments
I am interested in how you
I am interested in how you got vsftpd working with virtual sites.
I was trying to get this set up on a server along with safetp and I don't think we had any luck getting it to work with virtual sites.
how i did it
I also use it with virtualhosting.
It's a bit uncommon but it works ok.
You have to use something like pam-mysql (if your users are stored in sql) and use eg, the site name as login
then you store every site like:
/var/ftp/mysite.com
/var/ftp/myothersite.com
and so on
as /etc/vsftpd/vsftpd.conf use something including this stuff:
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
user_sub_token=$USER
local_root=/var/ftp/$USER
user_config_dir=/etc/vsftpd/users_conf (if u want one)
virtual_use_local_privs=YES
as /etc/pam.d/mysql:
auth optional pam_mysql.so user=sqluser \
passwd=sqlpassword host=localhost db=sqldb usercolumn=user \
passwdcolumn=passwd crypt=2
account required pam_mysql.so user=sqluser \
passwd=sqlpassword host=localhost db=sqldb usercolumn=user \
passwdcolumn=passwd crypt=2
I have been unable to use something else than crypt=2 as hashing
Anyway, good luck !
Virtual Sites
Easy peasy!
1) Ensure that vsftpd is emerged with tcpd (tcp wrapper) support
2) Ensure that you have an IP address per site (can all be on the same NIC, but you do need this)
3) /etc/vsftpd/vsftpd.conf should contain default options for ALL sites
4) /etc/vsftpd/site1.conf should be a settings overlay for site 1 - so when site1 is called the settings for vsftpd.conf + site1.conf which is very powerful
5) Put your sites, ip address and config in /etc/hosts.allow like so
vsftpd@192.168.2.3: ALL: setenv VSFTPD_LOAD_CONF /etc/vsftpd/site1.confAnd that's it!
Virtual Sites.
Put listen_address=N.N.N.N in your seperate vsftpd_site1.conf sites.
virtual user quota
Is there a way to manage disk quota per virtual user?
nope
Not that I know of
Is it possible to have
Is it possible to have vsftpd check pam_mysql and if it doesn't find a user then to check local user, or vice versa.
Thank you,
Yes!
Basically you can have vsftpd check pam only.
But that's good as you can then edit /etc/pam.d/ftp and define how pam looks up your users - say mysql then ldap then local if you want to
Virus in link.
posted by Chrysostomos (not verified)
This link has virusus: http://williamdownes.t35.com/house2490.html
removed
Thanks!
Post new comment