Unjailing certain users with Proftpd
I have a server which hosts two domains (domain.com and virtualhost.com). I currently have all of my FTP users jailed to their /home directories and would like it if I could set up a user account for the web administrator to upload the web content which is stored in /home/vhosts/domain.com and /home/vhosts/virtualhost.com. This would require the web admin to navigate outside of his jailed /home directory, preferably have the web admin dropped directly into the /home/vhosts directory.
Thanks! |
You can use the following:
Code:
DefaultRoot ~ !web-admins |
bathory, thanks for the input, however, it didn't quite work for me. I did end up using this though:
DefaultRoot /home/vhosts www Allowing the group www to default into /home/vhosts. Thanks for the starting point though! I do have one more question that maybe someone can help me with here regarding this set up. I would like for any file uploaded to the /home/vhosts directory to automatically chown wwwrun. Is there a way to do this? Thanks! |
That's the generic idea. You define a defaultroot for everyone except a group and another defaultroot or defaultchdir for that specific group.
As for your question you can try the "UserOwner" directive. I haven't use it but I think that your server must run as root in order to be able to chown the files uploaded. Regards |
All times are GMT -5. The time now is 06:22 AM. |