vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories
I would like to offer a group of friends (not technically adept) the ability to host their websites on a server of mine. These would be name-based virtual hosted sites, not just ~user sites.
Having read the vsftpd examples, I would think I would want to make a vsftpd virtual user for each of these friends, and then have that virtual user mapped to a specific directory on the server (/var/www/user).
What I can't figure out from the examples is how to do that mapping. It seems as though all virtual users will share the same directory, which is not what I want. And the alternative is to make regular users, which again, I would prefer not to do.
How do I configure vsftpd to implement many virtual users where each virtual user has a specific and unique home directory?
NEVER EVER use wu-ftpd if you are not FORCED to do so. It has a pretty bad security history. I suggest ProFTPd - or even better vsftpd. vsftpd can authentificate through pam (e. g. pam_mysql) ... ProFTPd can authentificate also against a MySQL-database!
Can't you use a combination of:
-per user configuration (user_config_dir option or something like that)
-anon_root or local_root setting for each user (depending on the option that specifies if virtual users get
either local user privileges or anonymous user privileges)?
Downside may be that failure to change to the given directory is silently ignored.
Im having a play with vsftp too and have read that you can make it automatically go into the folder you want simply by adding the following to your vsftp config file:
Im having a play with vsftp too and have read that you can make it automatically go into the folder you want simply by adding the following to your vsftp config file:
user_sub_token=$USER
local_root=/var/www/$USER
Dont know if it definately works though
Yeah, I had the same problem, and I solved it with these 2 options , thank you!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.