vsftp gets taken over

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 Cool

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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.conf

And 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 Smiling

Virus in link.

posted by Chrysostomos (not verified)
This link has virusus: http://williamdownes.t35.com/house2490.html Sad

removed

Thanks!

Post new comment

Smileys
:?8):sick::jawdrop::);):(:D}:):P:O
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.