VSFTPD Virtual/Local local_root Permissions Problem (alllmost there)
Hi everybody,
I'm running a Gentoo virtual machine and I'm playing around with vsFTPd version 3.0.2, I have it pretty much working the way that I want, but I have just one problem that I'd like to see if I can resolve. I have a virtual and local user setup. I have created the user 'virtual' in the group 'virtual'. Both virtual users and local users can log-in, virtual users can upload, but local users cannot. Clearly the problem is that all users, local and virtual, are acting as the user 'virtual' (guest_username=virtual) - I have the virtual users' local_roots owned by the user 'virtual', but local users' local_root is just their home directory, which is clearly not owned by 'virtual'. Each virtual user has a configuration file (user_config_dir=/etc/vsftpd/user_conf) - in each of those files I specify the local_root for that user, which will be owned by 'virtual' - it works great. If I do not make a config file for each local user (also in /etc/vsftpd/user_conf/) the local user is directed to the home directory for the user 'virtual' when they log-in. So, my questions: 1) How can I make it so that local users log-in as themselves, and not as the guest user 'virtual' - such that they have permission to write to their home directories. 2) Is there a better, more automated way of having vsFTPd determining the local_root of a local user than looking at that user's config file in user_config_dir? Such that if a local user logs-in that they are acting as themselves (thus they are able to write to their home directory). I have tried setting local_root=/home/$USER in vsftpd.conf, which won't work, a) because the user 'virtual's home folder isn't at /home/virtual (just the way I set it up), b) and all users come in as the user 'virtual', so even if /home/virtual did exist I would still not be accomplishing what I want. My vsftp.conf: Code:
#GENERAL Code:
auth sufficient /lib/security/pam_unix.so Code:
local_root=/var/www/virtual/queen Thanks a lot! :) |
I haven't set up virtual users recently but going by the man page:
Quote:
|
All times are GMT -5. The time now is 03:15 PM. |