[ubuntu-uk] FTP Server Problems - Help?
Simon Greenwood
sfgreenwood at gmail.com
Tue Aug 10 07:02:34 BST 2010
On 10 August 2010 03:28, Daniel Case <danielcase10 at googlemail.com> wrote:
> I just set it in the config file:
> It told me to uncomment the line which said something along the lines of:
>
> DocumentRoot: ~
>
> If i set it to an actual directory it will be fine, for example: /var/www
> But then how do i set diff users diff directories?
> Daniel
>
>
> On 9 August 2010 23:54, Simon Greenwood <sfgreenwood at gmail.com> wrote:
>
>> That sounds really familiar but I haven't done anything with ProFTPD for a
>> long time. How do you set up the chroot?
>>
>> S
>>
>> On 9 Aug 2010 23:05, "Daniel Case" <danielcase10 at googlemail.com> wrote:
>>
>> Hi There guys, I have a little server that I use for testing purposes and
>> im having some problems with FTP.
>> I am using Ubuntu 10.04 and proftpd
>>
>> When I do not chroot local users it will go to there home directory when
>> they log in (/home/ftp for my FTP user) but the problem with that is they
>> can get out quite easily so i tried to jail them in the chroot.
>>
>> For some reason whenever I set that it puts the user straight into the
>> root directory and doesn't let them into anything. I was expecting it to
>> just chroot the user in /home/ftp
>>
>> I did put this on the Ubuntu Forum but it appears no-one could answer, i
>> bumped it twice after it dropped from the fifth page...
>>
>> --
>>
>>
Ah, found it. You need to set the execute bit on the directory that you
chroot a user to. That's a U*ix thing rather than a proftpd thing. Here's[1]
a guide to the old fashioned way to set it up.
1. http://aplawrence.com/Bofcusm/2512.html
s/
--
My CV: http://bit.ly/sfgreenwood_cv
Linkedin: http://www.linkedin.com/in/simonfgreenwood
Twitter: @sfgreenwood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100810/64167ca7/attachment-0001.htm
More information about the ubuntu-uk
mailing list